[ https://issues.apache.org/jira/browse/HIVE-13557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250074#comment-15250074 ]
Ashutosh Chauhan commented on HIVE-13557: ----------------------------------------- [~cartershanklin] noted that we do allow {{select date '2012-01-01' + (-30) days;}} syntax. So, I think we are good here. Last point here is to allow {{DAY}} wherever {{DAYS}} if standard supports it. MySQL support {{DAY}} however postgres doesnt. > Make interval keyword optional while specifying DAY in interval arithmetic > -------------------------------------------------------------------------- > > Key: HIVE-13557 > URL: https://issues.apache.org/jira/browse/HIVE-13557 > Project: Hive > Issue Type: Sub-task > Components: Types > Reporter: Ashutosh Chauhan > > Currently we support expressions like: {code} > WHERE SOLD_DATE BETWEEN ((DATE('2000-01-31')) - INTERVAL '30' DAY) AND > DATE('2000-01-31') > {code} > We should support: > {code} > WHERE SOLD_DATE BETWEEN ((DATE('2000-01-31')) + (-30) DAY) AND > DATE('2000-01-31') > {code} > -- This message was sent by Atlassian JIRA (v6.3.4#6332)