-
Notifications
You must be signed in to change notification settings - Fork 824
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 duration conversion error #5626
Conversation
Could we get a test of this please |
I agree -- a test is important to make sure we don't break this fix in some future refactor |
sorry for the noob question, where should I add a test for it? |
I think we could add a round trip test here perhaps: arrow-rs/parquet/src/arrow/arrow_writer/mod.rs Lines 1996 to 2007 in 91f0b17
|
write duration to parquet get a panic... arrow-rs/parquet/src/arrow/schema/mod.rs Line 445 in a999fb8
|
Yes I think we would need #1938. Technically polars is doing something a little funky here |
or put another way there is no way to write a duration to a parquet file with arrow-rs yet (but polars can do so). So the ideal solution is support writing duration to parquet too (but I suspect there might be work to sort out what the desired behavior is) Perhaps for this PR we can just check in a small parquet file that was written by polars and ensure we can read it back correctly 🤔 |
Closing as this PR has been inactive for a while |
I have the same problem with type pl.Time. When I write a column with pl.Time to a parquet file, it reads the column as int64. |
Thanks @EddyXorb -- any chance you can make a PR with a test? It seems that that is all that is missing to be able to get this fixed |
I would love to help, but at the moment I am very very busy. Once I have time (mid december), I can try to provide a test. |
Thank you! |
Which issue does this PR close?
Closes #5625
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?