-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Enable parsing columns from file path for Broker Load (#1582) #1635
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
14 commits
Select commit
Hold shift + click to select a range
2e2b466
Enable parsing columns from file path for Broker Load
yuanlihan 1f45887
Enable parsing columns from file path for Broker Load
yuanlihan 1da3654
Enable parsing columns from file path for Broker Load
yuanlihan 3c6eced
Enable parsing columns from file path for Broker Load
yuanlihan a6ad01d
Enable parsing columns from file path for Broker Load
yuanlihan d9bbb1b
Enable parsing columns from file path for Broker Load
yuanlihan 55b2b92
Format text
yuanlihan 030c1dd
Enable parsing columns from file path for Broker Load
yuanlihan 2ffaac0
Enable parsing columns from file path for Broker Load
yuanlihan 7176ed4
Fix ut
yuanlihan 8b5061b
Add ut
yuanlihan 7c7c54c
Fix ut
yuanlihan 067b4c5
Remove redundant persistence
yuanlihan 25c4bb0
Remove redundant meta_version
yuanlihan 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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -70,6 +70,9 @@ Status ParquetScanner::get_next(Tuple* tuple, MemPool* tuple_pool, bool* eof) { | |||||
| _cur_file_eof = false; | ||||||
| } | ||||||
| RETURN_IF_ERROR(_cur_file_reader->read(_src_tuple, _src_slot_descs, tuple_pool, &_cur_file_eof)); | ||||||
| // range of current file | ||||||
| const TBrokerRangeDesc& range = _ranges.at(_next_range - 1); | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| fill_slots_of_columns_from_path(range.num_of_columns_from_file, range.columns_from_path); | ||||||
| { | ||||||
| COUNTER_UPDATE(_rows_read_counter, 1); | ||||||
| SCOPED_TIMER(_materialize_timer); | ||||||
|
|
@@ -141,7 +144,7 @@ Status ParquetScanner::open_next_reader() { | |||||
| file_reader->close(); | ||||||
| continue; | ||||||
| } | ||||||
| _cur_file_reader = new ParquetReaderWrap(file_reader.release()); | ||||||
| _cur_file_reader = new ParquetReaderWrap(file_reader.release(), range.num_of_columns_from_file); | ||||||
| Status status = _cur_file_reader->init_parquet_reader(_src_slot_descs); | ||||||
| if (status.is_end_of_file()) { | ||||||
| continue; | ||||||
|
|
||||||
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.