phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lomore (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PHOENIX-3440) Calcite has specific requirements for date and datetime operations
Date Thu, 03 Nov 2016 22:08:58 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-3440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Lomore updated PHOENIX-3440:
---------------------------------
    Description: 
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}





  was:
This popped up just today in the Calcite mailing list, and I noticed some test failures in
Phoenix due to it.

testDateSubtractExpressionMetaData1
testDateSubtractExpressionMetaData1
testDateSubtractExpressionMetaData1

These tests fail due to the difference in support.

Summary of the exception:
{code}
Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Cannot apply '-' to arguments
of type '<DATE> - <DECIMAL(2, 1)>'. 
Supported form(s): 
'<NUMERIC> - <NUMERIC>'
'<DATETIME_INTERVAL> - <DATETIME_INTERVAL>'
'<DATETIME> - <DATETIME_INTERVAL>'
{code}


> 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