-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-4690][HUDI-4503] Cleaning up Hudi custom Spark Rules
#6361
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
8d8cda2 to
24501af
Compare
RulesRules
c182b7e to
bf943f5
Compare
RulesRules
RulesRules
88f855d to
d37c994
Compare
RulesRules
bf18e26 to
1f3b814
Compare
533eb9b to
392b7ce
Compare
392b7ce to
844bce7
Compare
844bce7 to
c69c3db
Compare
| createRdd(df, structName, recordNamespace, toScalaOption(targetSchema)) | ||
| } | ||
|
|
||
| if (latestTableSchema.isPresent && reconcileToLatestSchema) { |
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 conditional got removed as useless
…he source to avoid race-condition, w/ Spark's `ResolveReferences` rule
…esolve the source to avoid race-condition," This reverts commit ebca9c4.
…lt catch-all rule in vanilla `ResolveReferences`
4230038 to
04d1820
Compare
…ly, as otherwise assignments might get resolved before we do their adaptation; Handle unresolved plans in `resolveHudiTable`
| def customResolutionRules: Seq[RuleBuilder] = { | ||
| val rules: ListBuffer[RuleBuilder] = ListBuffer( | ||
| // Default rules | ||
| session => HoodieResolveReferences(session), |
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.
All custom resolution logic has been removed (we now rely on Spark to resolve all of its own commands)
- Apply to producing side based on whether output contains meta-fields (rather than whether it resolves to Hudi table) - Handle producing side in one pass (ie both resolved/unresolved)
… nodes on top of it being resolved)
|
Closing this in favor of rebased & squashed #7871 |

Change Logs
This PR cleans up considerable amount of Spark's (internal) resolution logic that has been copied over into Hudi components, while in reality there's no actual need for that.
Changelog: TBA
Issues this will be addressing:
Impact
None
Contributor's checklist