-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-3280] Cleaning up Hive-related hierarchies after refactoring #4743
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
30 commits
Select commit
Hold shift + click to select a range
2014048
Cleaned up conditional that should not be hit;
17a72c8
Made `BaseFileWithLogsSplit` implement `RealtimeSplit`;
258bd27
Tidying up `HoodieRealtimeFileSplit`
a13d3ac
`PathWithLogFilePath` > `RealtimePath`;
cf87b0e
Refactored `RealtimePath` to produce `HoodieRealtimeFileSplit`
4770a89
Prefix w/ "Hoodie"
f0a86b5
Fixed `HoodieRealtimeFileSplit` to bear `belongsToIncrementalQuery` flag
6ae1a71
Tidying up
04c024a
Removed `BaseFileWithLogsSplit`
c2d8b04
Cleaned up dead-code
5fda93e
Fixed `RealtimeBootstrapBaseFileSplit`
ba49892
`RealtimeBootstrapBaseFileSplit` > `HoodieRealtimeBootstrapBaseFileSp…
ce26a38
Added comments
ffe1451
Propagate missing Virtual Key info into `RealtimeSplit`s
20b8380
Cleaned up `RealtimeFileStatus`, `HoodieRealtimePath` to be mostly im…
f07469c
XXX
3d78efd
Properly set up `HoodieVirtualKeyInfo`
3e83820
Separate COW/MOR `InputFormat`s to make sure that no MOR-specific log…
ee70c2f
Tidying up
f2dde38
Made sure Virtual Key info is fetched once for individual table
4a68cff
Tidying up
d357ea2
Reverting inadvertent change
a124630
Fixed incorrect `blockSize` being set in `FileStatus` object when lis…
5d842ac
Cleaned up deprecated code
d8beebf
Extracted base `HoodieTableInputFormat`
b3a5264
Misisng license
d1f40f1
Added missing validation for whether instant is present in the timeline
3ebaec5
Killing dead-code
91262ed
Fixed tests
cb19f84
Make `BaseHoodieTableFileIndex` only validate instants when required …
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
123 changes: 0 additions & 123 deletions
123
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/BaseFileWithLogsSplit.java
This file was deleted.
Oops, something went wrong.
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 the block size be extracted outside the loop based on the file system of base path, since it's a file-system config?
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 based on path, so don't want to bake in the assumptions that all paths are homogeneous (might be pointing at different HDFS nodes, w/ different block settings)
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.
block size is a per file thing in HDFS. but rarely ever set differently. For cloud storage its all 0s. We need to see if
getDefaultBlockSize()is an RPC call. if so, then need to avoid this, even if it assumes things.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.
Let me check. The reason why i'm fixing this is b/c w/ block-size 0 Hive will slice the file in 1 byte blocks.
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.
@vinothchandar there's no RPC in the path (config stored w/in DFSClient)
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.
@alexeykudinkin I think I confused it with
getDefaultBlockSize()call which is based on file system (see below), not file status, and it only fetches from the config. This is fine.Even if the block size is 0, should Hive still honor the actual block size of the file? At least that's my understanding for Trino Hive connector.