Fix for Parquet v2.0 being deprecated#12300
Conversation
|
I am not sure. Maybe @astrofrog or @astropy/coordinators ? |
|
👋 Thank you for your draft pull request! Do you know that you can use |
|
To request adding a person to an astropy team open an issue over at https://github.com/astropy/astropy-project - there is a template for requesting GitHub admin action items I think. |
erykoff
left a comment
There was a problem hiding this comment.
Thanks for the quick PR! I think we need to make sure that the version checking is deferred, and not done on module load (which will slow down import astropy, which nobody wants).
|
|
||
| # We use version='2.0' for full support of datatypes including uint32. | ||
| with parquet.ParquetWriter(output, schema, version='2.0') as writer: | ||
| with parquet.ParquetWriter(output, schema, version=writer_version) as writer: |
There was a problem hiding this comment.
Have we checked that we can write files with pyarrow 6 and read them with pyarrow 5?
There was a problem hiding this comment.
I have not, my work has been focused on trying to solve the CI issues that we are experiencing. Please test this and report your results.
There was a problem hiding this comment.
Any conclusion? It would seem odd that schema 2.4 is not compatible with 2.0, but I don't see any documentation about the change.
There was a problem hiding this comment.
https://github.com/apache/arrow/pull/11031/files indicates there are genuine differences between 2.0 and 2.4.
But I'm not sure there's really anything we can do about this. Up to users to maintain a stable pyarrow version or to manually specify the version as 2.0 when reading a file with astropy.
|
Thanks @WilliamJamieson and @erykoff for the diagnosis and fix! |
|
Cool that we got away without version pinning. Thanks! |
Description
This is a possible fix for Parquet v2.0 being depreciated.
Fixes #12298
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
Extra CIlabel.no-changelog-entry-neededlabel. If this is a manual backport, use theskip-changelog-checkslabel unless special changelog handling is necessary.astropy-botcheck might be missing; do not let the green checkmark fool you.backport-X.Y.xlabel(s) before merge.