-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Allow append to existing datasources when dynamic partitioning is used #10033
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
45 commits
Select commit
Hold shift + click to select a range
edafd16
Fill in the core partition set size properly for batch ingestion with
jihoonson 771eec1
Merge branch 'master' of github.com:apache/druid into dynamic-partiti…
jihoonson f1aeddb
incomplete javadoc
jihoonson 42e37e2
Address comments
jihoonson d5e197e
fix tests
jihoonson 99842f9
fix json serde, add tests
jihoonson b2222b9
checkstyle
jihoonson f8ac529
Set core partition set size for hash-partitioned segments properly in
jihoonson 4600bd6
test for both parallel and single-threaded task
jihoonson 7448773
unused variables
jihoonson 08e2635
fix test
jihoonson 30cae0e
unused imports
jihoonson 5664a6c
add hash/range buckets
jihoonson f2c9bf3
some test adjustment and missing json serde
jihoonson af2b695
centralized partition id allocation in parallel and simple tasks
jihoonson 209ad92
Merge branch 'master' of github.com:apache/druid into hash-partition-…
jihoonson ae87c94
remove string partition chunk
jihoonson dbe705a
revive string partition chunk
jihoonson 71e2324
fill numCorePartitions for hadoop
jihoonson d6655af
clean up hash stuffs
jihoonson 7d0d3b9
resolved todos
jihoonson 6cff5b8
javadocs
jihoonson 07a9e1b
Fix tests
jihoonson 6e0ac6e
add more tests
jihoonson 4a27771
doc
jihoonson 7eaed9b
unused imports
jihoonson 2db0a77
Allow append to existing datasources when dynamic partitioing is used
jihoonson 374a466
fix test
jihoonson 1106c92
checkstyle
jihoonson f109a5a
checkstyle
jihoonson 19d6546
fix test
jihoonson 4d56a88
fix test
jihoonson 0475a63
fix other tests..
jihoonson 4da2f8b
checkstyle
jihoonson f246bbb
hansle unknown core partitions size in overlord segment allocation
jihoonson d85a49a
fail to append when numCorePartitions is unknown
jihoonson 5f48e44
log
jihoonson 4af415f
fix comment; rename to be more intuitive
jihoonson 21dea74
double append test
jihoonson 8dc81b5
Merge branch 'master' of github.com:apache/druid into append-dynamic
jihoonson 402c2dc
cleanup complete(); add tests
jihoonson 92a6e90
fix build
jihoonson b423e96
add tests
jihoonson b4e702b
address comments
jihoonson 9025e3b
checkstyle
jihoonson 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
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.
Should this be
partialShardSpec.useNonRootGenerationPartitionSpace();instead of!partialShardSpec.useNonRootGenerationPartitionSpace();?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 like the java doc for ShardSpec#sharePartitionSpace and OverwriteShardSpec#sharePartitionSpace should be updated
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.
Ah, all
ShardSpecs share the same root-generation partition space exceptOverwriteShardSpec. So, the current code is correct. I updated the javadoc to make it more clear.