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

fix: Only verify Parquet ConvertedType if no LogicalType is given #20682

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

coastalwhite
Copy link
Collaborator

Since Parquet's LogicalType replaced the ConvertedType, there is no equivalent to certain LogicalTypes in the ConvertedType (e.g. Timestamp::Nanos). Therefore, we should only verify whether the ConvertedType is valid if no LogicalType was given.

Fixes #20628.

Since Parquet's `LogicalType` replaced the `ConvertedType`, there is no
equivalent to certain `LogicalType`s in the ConvertedType (e.g.
`Timestamp::Nanos`). Therefore, we should only verify whether the
`ConvertedType` is valid if no `LogicalType` was given.

Fixes pola-rs#20628.
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jan 13, 2025
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.99%. Comparing base (74dad84) to head (f61bbd0).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20682      +/-   ##
==========================================
- Coverage   79.00%   78.99%   -0.01%     
==========================================
  Files        1559     1559              
  Lines      221152   221217      +65     
  Branches     2527     2529       +2     
==========================================
+ Hits       174711   174760      +49     
- Misses      45863    45878      +15     
- Partials      578      579       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

codspeed-hq bot commented Jan 13, 2025

CodSpeed Performance Report

Merging #20682 will improve performances by 34.09%

Comparing coastalwhite:fix/pq-timestamp-ns-20628 (f61bbd0) with main (dd9a180)

Summary

⚡ 1 improvements
✅ 40 untouched benchmarks

Benchmarks breakdown

Benchmark main coastalwhite:fix/pq-timestamp-ns-20628 Change
test_pdsh_q21 190.6 ms 142.2 ms +34.09%

@ritchie46 ritchie46 merged commit a0d96f2 into pola-rs:main Jan 13, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot read seemingly valid parquet files with annotations
2 participants