Skip to content

Conversation

@LorrensP-2158466
Copy link
Contributor

Which issue does this PR close?

Closes #11027.

Rationale for this change

What changes are included in this PR?

Implements boolean data page statistics in parquet, with tests.

Extra (maybe)

Because BooleanArray::from_iter requires that iter.size_hint() returns (_, Some(upper)) we have to collect the flattened BooleanDataPageStatsIterator. But i find this weird since we pass a Sized Iterator (Vec::into_iter) into flatten(), which would keep the upper bound. I have not gone deeper than this, but I think we don't need this extra allocation in there.

Are these changes tested?

yes

Are there any user-facing changes?

no

@github-actions github-actions bot added the core Core DataFusion crate label Jun 21, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @LorrensP-2158466 -- this looks great 🙏

@alamb alamb merged commit 4916e89 into apache:main Jun 21, 2024
xinlifoobar pushed a commit to xinlifoobar/datafusion that referenced this pull request Jun 22, 2024
* test and implement boolean data page statistics

* left out a collect & forgot to change the Check to Both

* Update datafusion/core/src/datasource/physical_plan/parquet/statistics.rs

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
xinlifoobar pushed a commit to xinlifoobar/datafusion that referenced this pull request Jun 22, 2024
* test and implement boolean data page statistics

* left out a collect & forgot to change the Check to Both

* Update datafusion/core/src/datasource/physical_plan/parquet/statistics.rs

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
* test and implement boolean data page statistics

* left out a collect & forgot to change the Check to Both

* Update datafusion/core/src/datasource/physical_plan/parquet/statistics.rs

---------

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Boolean Parquet Data Page Statistics

2 participants