[
https://issues.apache.org/jira/browse/DRILL-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacques Nadeau updated DRILL-2709:
----------------------------------
Priority: Minor (was: Major)
> NullPointerException from "CAST( '' AS ANY(12345678901))"
> ---------------------------------------------------------
>
> Key: DRILL-2709
> URL: https://issues.apache.org/jira/browse/DRILL-2709
> Project: Apache Drill
> Issue Type: Bug
> Components: SQL Parser
> Reporter: Daniel Barclay (Drill)
> Priority: Minor
> Fix For: Future
>
>
> The invalid (right?) type name in CAST( '' AS ANY(12345678901)) yields a
> NullPointerException:
> {noformat}
> 0: jdbc:drill:zk=local> SELECT CAST( '' AS ANY(12345678901)) FROM
> INFORMATION_SCHEMA.CATALOGS;
> Query failed: NullPointerException:
> Error: exception while executing query: Failure while executing query.
> (state=,code=0)
> 0: jdbc:drill:zk=local> EXPLAIN PLAN FOR SELECT CAST( '' AS ANY(12345678901))
> FROM INFORMATION_SCHEMA.CATALOGS;
> Query failed: NullPointerException:
> Error: exception while executing query: Failure while executing query.
> (state=,code=0)
> {noformat}
> Note: The problem relates to the size of the value of the numeric literal--a
> literal with a value that fits in INTEGER does not yield the
> NullPointerException.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)