phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3440) Calcite has specific requirements for date and datetime operations
Date Thu, 10 Nov 2016 18:33:58 GMT

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

James Taylor commented on PHOENIX-3440:
---------------------------------------

[~julianhyde] - is there a conformance mode where <INTEGER> + <DATE> and <DATE>
- <DECIMAL> will work? That's the way it works in Oracle, for example as you likely
know.

> Calcite has specific requirements for date and datetime operations
> ------------------------------------------------------------------
>
>                 Key: PHOENIX-3440
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3440
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Eric Lomore
>            Priority: Minor
>
> This popped up just today in the Calcite mailing list, and I noticed numerous failures
in phoenix test cases.
> Just a few of many:
> testDateSubtractExpressionMetaData1
> testDateSubtractExpressionMetaData2
> testDateSubtractExpressionMetaData3
> testDateAdditionExpressionMetaData1
> testDateAdditionExpressionMetaData2
> testTwoDateSubtractExpressionMetaData
> These tests fail due to the difference in support.
> Summary of acceptable operations from the various exception codes:
> {code}
> Supported form(s): 
> '<NUMERIC> - <NUMERIC>'
> '<NUMERIC> + <NUMERIC>'
> '<DATETIME_INTERVAL> - <DATETIME_INTERVAL>'
> '<DATETIME_INTERVAL> + <DATETIME_INTERVAL>'
> '<DATETIME> - <DATETIME_INTERVAL>'
> '<DATETIME> + <DATETIME_INTERVAL>'
> {code}
> Some of the incompatibilities thrown:
> {code}
> '<NULL> - <DATE>'
> '<NULL> + <DATE>'
> <INTEGER> + <DATE>
> <DATE> - <DECIMAL(2, 1)>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message