You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Daniel Barclay (Drill) (JIRA)" <ji...@apache.org> on 2015/05/18 06:24:59 UTC

[jira] [Created] (DRILL-3126) "SELECT `VARCHAR`('x') " yields internal ("SYSTEM ERROR") error

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)