aykut-bozkurt opened a new pull request, #6299: URL: https://github.com/apache/arrow-rs/pull/6299
Supports writing `IntervalMonthNanoArray` to parquet only if its `nanoseconds` part does not exceed `i32::MAX`. (since interval logical type, in parquet, is represented as 4 bytes month + 4 bytes days + 4 bytes milliseconds = 12 bytes.) When the `nanoseconds` part does not exceed `i32::MAX`, then it is safe to write it to parquet after truncating it to 4 bytes. Otherwise, we throw error as we lose precision. # Which issue does this PR close? Closes #6298. # Rationale for this change 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. # What changes are included in this PR? When the `nanoseconds` part does not exceed `i32::MAX`, then it is safe to write it to parquet after truncating it to 4 bytes. When the `nanoseconds` part exceeds `i32::MAX`, then we throw error. # Are there any user-facing changes? No. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
