Skip to content

GH-43983: [C++][Parquet] Add support for arrow::ArrayStatistics: zero-copy types - #43984

Merged
kou merged 3 commits into
apache:mainfrom
kou:cpp-parquet-statistics-zero-copy
Sep 8, 2024
Merged

kou merged 3 commits into
apache:mainfrom
kou:cpp-parquet-statistics-zero-copy

Conversation

@kou

@kou kou commented Sep 6, 2024 •

Copy link
Copy Markdown
Member

Rationale for this change

Statistics is useful for fast processing.

Target types:

  • Int32
  • Int64
  • Float
  • Double
  • Timestamp[milli]
  • Timestamp[micro]
  • Timestamp[nano]

What changes are included in this PR?

Map ColumnChunkMetaData information to arrow::ArrayStatistics.

Are these changes tested?

Yes.

Are there any user-facing changes?

Yes.

@kou
kou requested a review from wgtmac as a code owner September 6, 2024 06:49
@github-actions

github-actions Bot commented Sep 6, 2024

Copy link
Copy Markdown

⚠️ GitHub issue #43983 has been automatically assigned in GitHub to PR creator.

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Comment on lines +355 to +359
// We can assume that integer and floating point number based
// min/max are always exact if they exist. Apache Parquet's
// "Statistics" has "is_min_value_exact" and
// "is_max_value_exact" but we can ignore them for integer and
// floating point number based min/max.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sorry. I forgot to add a note about floating point number in the first commit.
I've added it before I merge this.

@kou
kou merged commit a15956f into apache:main Sep 8, 2024
@kou
kou deleted the cpp-parquet-statistics-zero-copy branch September 8, 2024 23:58
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit a15956f.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

khwilson pushed a commit to khwilson/arrow that referenced this pull request Sep 14, 2024
…: zero-copy types (apache#43984)

### Rationale for this change

Statistics is useful for fast processing.

Target types:

* `Int32`
* `Int64`
* `Float`
* `Double`
* `Timestamp[milli]`
* `Timestamp[micro]`
* `Timestamp[nano]`

### What changes are included in this PR?

Map `ColumnChunkMetaData` information to `arrow::ArrayStatistics`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

Yes.
* GitHub Issue: apache#43983

Authored-by: Sutou Kouhei <kou@clear-code.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants