drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Barclay (Drill) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-3126) "SELECT `VARCHAR`('x') " yields internal ("SYSTEM ERROR") error
Date Mon, 18 May 2015 04:24:59 GMT
Daniel Barclay (Drill) created DRILL-3126:
---------------------------------------------

             Summary: "SELECT `VARCHAR`('x') " yields internal ("SYSTEM ERROR") error
                 Key: DRILL-3126
                 URL: https://issues.apache.org/jira/browse/DRILL-3126
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Daniel Barclay (Drill)


Trying to call an unknown function usually results in an error message like that in the following:

{noformat}
0: jdbc:drill:zk=local> SELECT NoSuchFunction('x') FROM INFORMATION_SCHEMA.CATALOGS;
May 17, 2015 9:15:13 PM org.apache.calcite.sql.validate.SqlValidatorException <init>
SEVERE: org.apache.calcite.sql.validate.SqlValidatorException: No match found for function
signature NoSuchFunction(<CHARACTER>)
May 17, 2015 9:15:13 PM org.apache.calcite.runtime.CalciteException <init>
SEVERE: org.apache.calcite.runtime.CalciteContextException: From line 1, column 8 to line
1, column 26: No match found for function signature NoSuchFunction(<CHARACTER>)
Error: PARSE ERROR: From line 1, column 8 to line 1, column 26: No match found for function
signature NoSuchFunction(<CHARACTER>)
{noformat}


However, trying to use a data type name in such a function call yields an internal error:

{noformat}
[Error Id: 0439d30c-8cdb-4eda-a253-17bf5afc468b on dev-linux2:31010] (state=,code=0)
0: jdbc:drill:zk=local> SELECT `VARCHAR`('x') FROM INFORMATION_SCHEMA.CATALOGS;
Error: SYSTEM ERROR: org.apache.drill.exec.exception.SchemaChangeException: Failure while
trying to materialize incoming schema.  Errors:
 
Error in expression at index -1.  Error: Missing function implementation: [varchar(VARCHAR-REQUIRED)].
 Full expression: --UNKNOWN EXPRESSION--..

Fragment 0:0

[Error Id: 3f20c811-a81f-41ad-9dc7-362456754eaf on dev-linux2:31010] (state=,code=0)
0: jdbc:drill:zk=local> 
{noformat}








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

Mime
View raw message