-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-5634] Rename CDC related classes #7410
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
|
@hudi-bot run azure |
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.
pls file a jira under epic HUDI-3478 to record the fixes made in this PR. we should make sure fixes are highlighted in the PR and tracked in jira, in where also we should clarify what bug it is.
And pls rebase master since this is very much behind the head
| cdcFileSplit = new HoodieCDCFileSplit(instantTs, BASE_FILE_DELETE, new ArrayList<>(), Option.empty(), Option.of(beforeFileSlice)); | ||
| } else if (writeStat.getNumUpdateWrites() == 0L && writeStat.getNumDeletes() == 0 | ||
| && writeStat.getNumWrites() == writeStat.getNumInserts()) { | ||
| && writeStat.getNumWrites() > 0) { |
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.
can you explain this change pls? this is fixing some corner case?
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.
How about rename HoodieCDCInferenceCase into HoodieChangelogType, I'm confused by what Inference Case really means.
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.
In my thought, writeStat.getNumWrites() == writeStat.getNumInserts() is right. The change is just for this comment: #6727 (comment). if the case mentioned in this comment, should be fixed in other codes, not here. I will rollback this change.
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.
it's inference case because HoodieCDCExtractor is all about inferring CDC result from commit metadata in different scenarios.
I prefer more concise name over lengthy name that gives the same meaning. anyway are you filing a separate PR for the fixes?
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.
this name is followed by #6727 (comment).
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.
Alexy is suggesting to use Inference instead because it is a none, but the nameHoodieCDCInferenceCase still confuses me.
| usesVirtualKeys = false, | ||
| usesVirtualKeys = !populateMetaFields, |
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.
this is a fix among those renaming changes
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.
Seems critical, should be merged for RC2
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.
Restore this first. let's keep this pr force on code-improvement.
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.
separate PR for the fix?
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.
1195034 to
c3d82c5
Compare
c3d82c5 to
4e00b43
Compare
|
@hudi-bot run azure |
4e00b43 to
3ce7c48
Compare
|
the failed UT is not related to this, will land this. |
Change Logs
solve some comments left in #6727
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
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist