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

Bart Samwel commented on SPARK-29679:
-------------------------------------

That's a good question. I think it would make sense to do it that way. That 
means that all ANSI SQL compliant queries will run, and if you mix month-type 
and seconds-type intervals then you get an error if you use any operation that 
depends on them being comparable (including things like GROUP BY). 

> Make interval type camparable and orderable
> -------------------------------------------
>
>                 Key: SPARK-29679
>                 URL: https://issues.apache.org/jira/browse/SPARK-29679
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Kent Yao
>            Assignee: Kent Yao
>            Priority: Major
>             Fix For: 3.0.0
>
>
> {code:sql}
> postgres=# select INTERVAL '9 years 1 months -1 weeks -4 days -10 hours -46 
> minutes' > interval '1 s';
>  ?column?
> ----------
>  t
> (1 row)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to