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

Extract parquet statistics from timestamps with timezones #10766

Merged
merged 4 commits into from
Jun 3, 2024

Conversation

xinlifoobar
Copy link
Contributor

Which issue does this PR close?

Closes #10758

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Jun 2, 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 @xinlifoobar -- this looks great.

I had some small stylistic comments, but I don't think they are necessary

Arc::new(arr_millis),
Arc::new(arr_seconds),
Arc::new(arr_nanos_timezoned),
Arc::new(arr_micros.clone()),
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if these really need to be cloned 🤔

Suggested change
Arc::new(arr_micros.clone()),
Arc::new(arr_micros),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

datafusion/core/tests/parquet/arrow_statistics.rs Outdated Show resolved Hide resolved
@comphead comphead merged commit 6e5344a into apache:main Jun 3, 2024
23 checks passed
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
* Fix incorrect statistics read for timestamp columns in parquet
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.

Extract parquet statistics from timestamps with timezones
3 participants