drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khurram Faraaz (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DRILL-4525) Query with BETWEEN clause on Date and Timestamp values fails with Validation Error
Date Mon, 09 Jan 2017 12:07:58 GMT

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

Khurram Faraaz edited comment on DRILL-4525 at 1/9/17 12:07 PM:
----------------------------------------------------------------

adding a note here that TPC-DS query 5 fails with the same Exception on Drill 1.10.0 ( bbcf4b76
)

{noformat}
Caused by: org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR: From
line 27, column 10 to line 28, column 46: Cannot apply 'BETWEEN ASYMMETRIC' to arguments of
type '<DATE> BETWEEN ASYMMETRIC <DATE> AND <TIMESTAMP(0)>'. Supported form(s):
'<COMPARABLE_TYPE> BETWEEN <COMPARABLE_TYPE> AND <COMPARABLE_TYPE>'

SQL Query null
{noformat}


was (Author: khfaraaz):
adding a note here that TPC-DS query 5 fails with the same Exception.

{noformat}
Caused by: org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR: From
line 27, column 10 to line 28, column 46: Cannot apply 'BETWEEN ASYMMETRIC' to arguments of
type '<DATE> BETWEEN ASYMMETRIC <DATE> AND <TIMESTAMP(0)>'. Supported form(s):
'<COMPARABLE_TYPE> BETWEEN <COMPARABLE_TYPE> AND <COMPARABLE_TYPE>'

SQL Query null
{noformat}

> Query with BETWEEN clause on Date and Timestamp values fails with Validation Error
> ----------------------------------------------------------------------------------
>
>                 Key: DRILL-4525
>                 URL: https://issues.apache.org/jira/browse/DRILL-4525
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Abhishek Girish
>            Assignee: Sean Hsuan-Yi Chu
>            Priority: Critical
>             Fix For: 1.9.0
>
>
> Query: (simplified variant of TPC-DS Query37)
> {code}
> SELECT
>        *
> FROM   
>        date_dim
> WHERE   
>        d_date BETWEEN Cast('1999-03-06' AS DATE) AND      (
>                   Cast('1999-03-06' AS DATE) + INTERVAL '60' day)
> LIMIT 10;
> {code}
> Error:
> {code}
> Error: VALIDATION ERROR: From line 6, column 8 to line 7, column 64: Cannot apply 'BETWEEN
ASYMMETRIC' to arguments of type '<ANY> BETWEEN ASYMMETRIC <DATE> AND <TIMESTAMP(0)>'.
Supported form(s): '<COMPARABLE_TYPE> BETWEEN <COMPARABLE_TYPE> AND <COMPARABLE_TYPE>'
> SQL Query null
> [Error Id: 223fb37c-f561-4a37-9283-871dc6f4d6d0 on abhi2:31010] (state=,code=0)
> {code}
> This is a regression from 1.6.0. 



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

Mime
View raw message