-
Notifications
You must be signed in to change notification settings - Fork 4.2k
GH-50156: [C++][Parquet] Ignore min/max for unknown column order #50157
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
9 commits
Select commit
Hold shift + click to select a range
34be8e8
GH-50156: [C++][Parquet] Ignore min/max for unknown column order
wgtmac fed1776
Potential fix for pull request finding
wgtmac a17f232
Apply suggestion from @wgtmac
wgtmac a92a70d
Apply suggestion from @wgtmac
wgtmac d42ce32
Apply suggestion from @wgtmac
wgtmac 0ada0c0
add can_use_stats() and revert nullable column index
wgtmac b3360da
rename to can_use_min_max
wgtmac 4a691c7
address comment
wgtmac 7edb162
add new PageReader::Open with descr
wgtmac 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,11 +117,21 @@ class PARQUET_EXPORT PageReader { | |
| public: | ||
| virtual ~PageReader() = default; | ||
|
|
||
| static std::unique_ptr<PageReader> Open(std::shared_ptr<ArrowInputStream> stream, | ||
|
Member
Author
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. I've introduced a new Open for PageReader and deprecated two below. |
||
| int64_t total_num_values, | ||
| Compression::type codec, | ||
| const ReaderProperties& properties, | ||
| const ColumnDescriptor& descr, | ||
| bool always_compressed = false, | ||
| const CryptoContext* ctx = NULLPTR); | ||
|
|
||
| PARQUET_DEPRECATED("Deprecated in 25.0.0. Use the ColumnDescriptor overload instead.") | ||
| static std::unique_ptr<PageReader> Open( | ||
| std::shared_ptr<ArrowInputStream> stream, int64_t total_num_values, | ||
| Compression::type codec, bool always_compressed = false, | ||
| ::arrow::MemoryPool* pool = ::arrow::default_memory_pool(), | ||
| const CryptoContext* ctx = NULLPTR); | ||
| PARQUET_DEPRECATED("Deprecated in 25.0.0. Use the ColumnDescriptor overload instead.") | ||
| static std::unique_ptr<PageReader> Open(std::shared_ptr<ArrowInputStream> stream, | ||
| int64_t total_num_values, | ||
| Compression::type codec, | ||
|
|
||
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.
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.
This might be slightly a breaking change because
StatisticsMinMaxField::kMinValueMaxValueonly looks formin_value/max_valueand does not trymin/maxanymore. But since all production code has been migrated to the newPageReeder::Open, it should be acceptable. @pitrouThere 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, also
min_value/max_valuehave been introduced in 2017...