Unify Catalog API methods to Async Style #1607
Replies: 12 comments 5 replies
This comment was marked as spam.
This comment was marked as spam.
-
Let me have a try. |
Beta Was this translation helpful? Give feedback.
-
Thanks bro |
Beta Was this translation helpful? Give feedback.
-
I have try and found lots of codes need change to async, so thinking a question: what the benefit of changing to async is? |
Beta Was this translation helpful? Give feedback.
-
yes, lots of code involved, let's postpone this issue |
Beta Was this translation helpful? Give feedback.
-
May I leave this issue open? |
Beta Was this translation helpful? Give feedback.
-
Sure |
Beta Was this translation helpful? Give feedback.
-
I have some concern on this. According to my experience, the most usage of catalog is in optimizer, which is canonically synchronous component. Thus I have to rewrite the code into asynchronous or do So maybe it's better to provide only synchronous API in |
Beta Was this translation helpful? Give feedback.
-
Thank you for reminding @leiysky |
Beta Was this translation helpful? Give feedback.
-
I am not sure about it. On the one hand, the Catalog is backed by flight service(for the time being) which is async, thus it is easier/more natural for Catalog API to go with async style. On the other hand:
Also, It may depend on the way we provide statistical information to the optimizer (again, correct me if I am mistaken). for the time being, as we discussed before, I am considering embedding statistics into the table metadata, which is NOT directly embedded in the MetaStore, but saved in object storage. Maybe the optimizer should consult the index layer while planning. I mean, the extended/enhanced index layer, which can provide table statistics (min, max, cardinality, row num, size, etc). |
Beta Was this translation helpful? Give feedback.
-
please allow me to transform this issue into a discussion |
Beta Was this translation helpful? Give feedback.
-
Catalog sync way is ok now after PR #1652 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Unify Catalog API methods to async, remove the internal
block_on
workaround.Background
Originally posted by @zhongzc in issue 1251, catalog as meta-store client & TableMetaCache #1212 (comment)
Beta Was this translation helpful? Give feedback.
All reactions