apache / apache/datafusion

Support parquet statistics for struct columns

Open
#8,334 9 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

While working on https://github.com/apache/arrow-datafusion/pull/8294 @tustvold noted that the statistics extraction code does not do the right thing with `Struct`s that were written to parquet

I think the usecase is something like the following query:

```sql
SELECT *
FROM my_table
WHERE struct_column = struct('foo', 'bar')
```

### Describe the solution you'd like

I would like the parquet statistics reading code to handle structs (I think).

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the parquet statistics extraction and reading code, focusing on how struct columns are handled. Reproduce the issue with the SQL example in the description, then verify that statistics for struct columns support the struct equality filter without incorrect results.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.