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

Safely Write IntervalMonthDayNanoArray to parquet or Throw error #6298

Open
aykut-bozkurt opened this issue Aug 24, 2024 · 0 comments
Open
Labels
enhancement Any new improvement worthy of a entry in the changelog

Comments

@aykut-bozkurt
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
When the nanoseconds part of IntervalMonthDayNano value does not exceed i32::MAX, then it is safe to write it to parquet after truncating it to 4 bytes. But currently I always get an unimplemented error when I try to write the array to parquet.

Describe the solution you'd like
When the nanoseconds part does not exceed i32::MAX, then it is safe to write it to parquet after truncating it to 4 bytes. If it exceeds i32::MAX, then we can throw error.

This unblocks the ones who needs to write arrow IntervalMonthDayNano with milliseconds precision to parquet. It currently always throws error even if it is safe to write the value to parquet.

Describe alternatives you've considered
There seems to be not many alternatives, other than adding new interval types to the spec. But this seems a huge change.

Additional context
related discussion #5849

@aykut-bozkurt aykut-bozkurt added the enhancement Any new improvement worthy of a entry in the changelog label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant