[
https://issues.apache.org/jira/browse/IMPALA-14639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18066832#comment-18066832
]
ASF subversion and git services commented on IMPALA-14639:
----------------------------------------------------------
Commit b59be457eb22c5be22eaa6c687f1fe2c8ee4aff0 in impala's branch
refs/heads/master from Steve Carlin
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=b59be457e ]
IMPALA-14639: Calcite planner should not allow date cast to int
The following query was passing before this commit (but now
fails correctly):
select cast(date '2000-12-21' as int);
Testing: Added test to calcite.test, also, tests exist in
test_date_queries.TestDateQueriesAllFormat.test_queries
Change-Id: Icad76e6c1db489ecdfa620109baa47232331a42d
Reviewed-on: http://gerrit.cloudera.org:8080/24048
Reviewed-by: Michael Smith <[email protected]>
Reviewed-by: Aman Sinha <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Calcite planner allowing cast of date to int
> --------------------------------------------
>
> Key: IMPALA-14639
> URL: https://issues.apache.org/jira/browse/IMPALA-14639
> Project: IMPALA
> Issue Type: Sub-task
> Reporter: Steve Carlin
> Assignee: Steve Carlin
> Priority: Major
> Fix For: Impala 5.0.0
>
>
> The following query should fail, but it is currently passing with the Calcite
> planner
>
> select cast(date '2000-12-21' as int);
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]