-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-4039] Make sure all builtin KeyGenerators properly implement Spark specific APIs
#5523
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
Merged
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
b03797d
XXX
125cff3
Inlined `KeyGenerator.getRecordKeyFieldNames` usages, rebased onto `g…
47bca25
Cleaned up `SparkKeyGeneratorInterface`: moved in API defs from `Buil…
3983e40
Rebased `BuiltinKeyGenerator` to return `UTF8String` for API ingestin…
3a1fa7c
Abstracted away nested-field path access, and Spark's `Row` conversio…
262217d
Rebased `SimpleKeyGenerator`, `NonpartitionedKeyGenerator` onto new f…
0e98599
Propery handle null partition-path parts
d33037e
Rebased remaining builtin key generators
ca3eb23
Modified `SparkKeyGeneratorInterface` to return `UTF8String` instead …
ef77760
Added `NestedFieldPath` to improve readability when used in Java
d69a515
Cleaned up `RowKeyGeneratorHelper`
4249ee2
Fixed `HoodieDatasetBulkInsertHelper`
0a8937b
Fixing compilation (after rebase)
5396498
`lint`
44af96f
Fixing partition-path extraction in `BulkInsertDataInternalWriterHelper`
70aba21
Fixing compilation
80bbfd8
Fixing tests
c693292
Cloned `UTF8StringBuilder` to accommodate for Spark 2
5a6f50a
Fixing invalid cast
96be961
Added missing partition path encoding;
b51306d
Fixing compilation
dc1c556
Fixing raw values deserialization when extracted from `InternalRow`s;
b13b455
Tidying up
f206c49
Extracting composite-key proper composition sequence into `BuiltinKey…
f9027b8
Fixed handling of null/empty key-parts for composite-keys to be in-sy…
457abfe
Handle failing to resolve nested field-paths;
19496ec
Fixed handling all-null/empty composite keys
105cf4e
Fixing encoding for `Row` seq;
1ea962d
Tidying up
7f87cb7
Fixed empty/null partition-path part handling
7c88042
Fixing typo;
3e5bb5c
Fixing more tests
fcfb212
Fixed expected exception wrapping
4e160de
Fixed NPE
ac3c8af
Unified key-gen sequences to be generic across String/UTF8String
8965fac
Fixed null/empty predicate testing
ab04d50
`lint`
f2764c7
Rewrote key-gen tests to avoid duplication, add more cases;
c86f7e8
Fixed tests
65856a4
Fixing NPE
8eca13b
Fixing tests
e07428e
Fixed invalid predicate
2773d05
Tidying up
85a30b1
Reverting `KeyGenerator`s API breaking name change
5c973ed
Fixed more tests
21a7ad5
Tidying up, elaborating docs
33defc6
Fixing tests
8466484
Fixed `HoodieRowCreateHandle` to properly instantiate `HoodieParquetW…
865baea
Fixed `HoodieRowCreateHandle` to properly write w/ and w/o meta-fields
1922a94
Fixing `CustomKeyGenerator`
ed3c096
Fixed `HoodieTimer` API
d8b9d3d
Fixing `CustomKeyGenerator` some more
8521cfa
Fixing tests
8825b2f
Fixed `UTF8String` handling in `TimestampBasedKeyGenerator`;
bd92244
Fixing mutable-buffer-aliasing bug `HoodieInsertDataInternalWriterHel…
1af1cc9
Fallback to default for hive-style partitioning, url-encoding configs
bf52e67
Always dump stdout (since sometimes spark-shell wouldn't exit, and do…
dbaafef
Reverting `KafkaConnectUtils` change
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are these renaming necessary in this PR? Next time, I would prefer to have them in a separate PR to avoid reviewing overhead.
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.
Agreed, renamed to resolve confusion that arose in our previous discussion regarding the scope of these fields
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 this is already part of guidelines. https://hudi.apache.org/contribute/developer-setup#coding-guidelines next time, lets not land any PRs violating this, until resolved.