-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[MINOR] Optimizing metadata getter for metadata table #13298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MINOR] Optimizing metadata getter for metadata table #13298
Conversation
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/table/HoodieFlinkTable.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed the change myself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a over-protection code, how could a MDT invoke the getMetadataWriter
method.
@danny0405 : from a HoodieTable standpoint, so far we don't differentiate data table vs metadata table. |
It is throwing instead of return early which is think is kind of over-protection, because MDT should be disabled in the MDT writer config/table config. |
24ab49b
to
d3973f7
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, returns empty seems more user friendly.
Change Logs
Impact
getMetadataWriter
for metadata table.Risk level (write none, low medium or high below)
none.
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist