-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
GH-39064: [C++][Parquet] Support row group filtering for nested paths for struct fields #39065
Merged
jorisvandenbossche
merged 8 commits into
apache:main
from
jorisvandenbossche:gh-39064-parquet-dataset-row-group-filtering-nested-path
Jan 8, 2024
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3312381
GH-39064: [C++][Parquet] Support row group filtering for nested paths…
jorisvandenbossche b1115bf
format
jorisvandenbossche 56476cf
fix for multiple nested fields + add python tests
jorisvandenbossche b87c829
add back compat shim for EvaluateStatisticsAsExpression
jorisvandenbossche 0d3da99
fixup
jorisvandenbossche bd8f127
add small C++ test
jorisvandenbossche 4205837
address feedback
jorisvandenbossche fb10913
Merge remote-tracking branch 'upstream/main' into gh-39064-parquet-da…
jorisvandenbossche 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 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 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 |
---|---|---|
|
@@ -175,7 +175,7 @@ class ARROW_DS_EXPORT ParquetFileFragment : public FileFragment { | |
Result<std::shared_ptr<Fragment>> Subset(std::vector<int> row_group_ids); | ||
|
||
static std::optional<compute::Expression> EvaluateStatisticsAsExpression( | ||
const Field& field, const parquet::Statistics& statistics); | ||
const Field& field, const FieldRef& field_ref, const parquet::Statistics& statistics); | ||
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. This is public API? So I can add a variant with the original signature that creates a FieldRef from the Field? |
||
|
||
private: | ||
ParquetFileFragment(FileSource source, std::shared_ptr<FileFormat> format, | ||
|
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.
I don't know if there is a better way, but the reason I am passing the FieldRef through the various function calls (through ColumnChunkStatisticsAsExpression to EvaluateStatisticsAsExpression), is that once we are here and we have the "schild" field, we don't know what the original full nested field was.
Neither the SchemaField passed to
ColumnChunkStatisticsAsExpression
nor the Field (schema_field.field
) passed toEvaluateStatisticsAsExpression
currently have that information AFAIU.