[ https://issues.apache.org/jira/browse/SPARK-27791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16852870#comment-16852870 ]
Zhu, Lipeng commented on SPARK-27791: ------------------------------------- [~yumwang] I think it should be {code:sql} select current_date - interval '1-1' year_month {code} > Support SQL year-month INTERVAL type > ------------------------------------ > > Key: SPARK-27791 > URL: https://issues.apache.org/jira/browse/SPARK-27791 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 2.4.0 > Reporter: Maxim Gekk > Priority: Major > > The INTERVAL type must conform to SQL year-month INTERVAL type, has 2 logical > types: > # YEAR - Unconstrained except by the leading field precision > # MONTH - Months (within years) (0-11) > And support arithmetic operations involving values of type datetime or > interval. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org