Skip to content
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

Parquet pruning will be incorrect if field names are repeated #8335

Closed
alamb opened this issue Nov 27, 2023 · 0 comments · Fixed by #8294
Closed

Parquet pruning will be incorrect if field names are repeated #8335

alamb opened this issue Nov 27, 2023 · 0 comments · Fixed by #8294
Labels
bug Something isn't working

Comments

@alamb
Copy link
Contributor

alamb commented Nov 27, 2023

Describe the bug

Basically if you have a parquet file with a nested field that has the same name as a top level field, the datafusion parquet reader will read statistics for the nested field instead of the top level field

To Reproduce

I added a test in #8294 struct_and_non_struct

Basically it shows:

struct_field: struct { 
  int_field: int32,     <-- 'struct_field.int_field'
}
int_field: int32.       <-- just 'int_field'

If you then ask for statistics (e.g. have a predicate on) int_field, the DataFusion reader will produce the statistics for struct_field.int_field rather than the top level int_field

Expected behavior

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant