You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Daniel Barclay (Drill) (JIRA)" <ji...@apache.org> on 2015/04/07 08:05:14 UTC
[jira] [Created] (DRILL-2709) NullPointerException from "CAST( ''
AS ANY(12345678901))"
Daniel Barclay (Drill) created DRILL-2709:
---------------------------------------------
Summary: NullPointerException from "CAST( '' AS ANY(12345678901))"
Key: DRILL-2709
URL: https://issues.apache.org/jira/browse/DRILL-2709
Project: Apache Drill
Issue Type: Bug
Reporter: Daniel Barclay (Drill)
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)