You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2015/04/07 17:57:12 UTC
[jira] [Updated] (DRILL-2709) NullPointerException from "CAST( ''
AS ANY(12345678901))"
[ https://issues.apache.org/jira/browse/DRILL-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Nadeau updated DRILL-2709:
----------------------------------
Fix Version/s: Future
> 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)