[ 
https://issues.apache.org/jira/browse/ARROW-15581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17487387#comment-17487387
 ] 

Weston Pace commented on ARROW-15581:
-------------------------------------

This is related to ARROW-15540.  For example, if we add a safe flag, we could 
happily create normal Arrow intervals.  Semantically the operations on Arrow 
intervals should be the same as opeartions on Substrait intervals.  If they are 
not then we need to enhance the Substrait spec to make that clear.

> [C++] Add proper support for Substrait intervals
> ------------------------------------------------
>
>                 Key: ARROW-15581
>                 URL: https://issues.apache.org/jira/browse/ARROW-15581
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Weston Pace
>            Priority: Major
>              Labels: substrait
>
> The Arrow Substrait consumer does not currently support functions on 
> intervals.  This is because the Substrait deserializer currently asserts that 
> all information must be round trippable and it errs on the side of rejecting 
> plans before allowing a plan that could be correct consumed but not round 
> tripped.
> This affects interval types because, for example, the substrait interval 1 
> year 12 months would be converted to the substrait interval 2 years after a 
> round trip.
> To resolve this the current implementation encodes intervals as fixed length 
> lists of numbers which we cannot do any kind of temporal math on.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to