-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[HUDI-9321] Fix unnecessary hoodie config conversion for ConfigUtils.getPayloadClass #13167
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
Conversation
…getPayloadClass (apache#13167) The construction of HoodieConfig is very costly, this would impact the regular read and also compaction. (cherry picked from commit d6c1272)
public static String getPayloadClass(Properties properties) { | ||
return HoodieRecordPayload.getPayloadClassName(new HoodieConfig(properties)); | ||
public static String getPayloadClass(Properties props) { | ||
return HoodieRecordPayload.getPayloadClassName(props); |
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.
Good catch. Have you checked if there is other place using new HoodieConfig
, in which all of them should be fixed if unnecessary?
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.
We do have many other new HoodieConfig
invocations, but not at per-row level. Do we need to fix them for 1.0.2?
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.
Change Logs
The construction of HoodieConfig is very costly, this would impact the regular read and also compaction.
Impact
none
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