Return-Path: X-Original-To: apmail-drill-dev-archive@www.apache.org Delivered-To: apmail-drill-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 660EF17535 for ; Mon, 18 May 2015 04:25:00 +0000 (UTC) Received: (qmail 88217 invoked by uid 500); 18 May 2015 04:25:00 -0000 Delivered-To: apmail-drill-dev-archive@drill.apache.org Received: (qmail 88167 invoked by uid 500); 18 May 2015 04:25:00 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 87878 invoked by uid 99); 18 May 2015 04:25:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2015 04:25:00 +0000 Date: Mon, 18 May 2015 04:24:59 +0000 (UTC) From: "Daniel Barclay (Drill) (JIRA)" To: dev@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DRILL-3126) "SELECT `VARCHAR`('x') " yields internal ("SYSTEM ERROR") error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 SEVERE: org.apache.calcite.sql.validate.SqlValidatorException: No match found for function signature NoSuchFunction() May 17, 2015 9:15:13 PM org.apache.calcite.runtime.CalciteException SEVERE: org.apache.calcite.runtime.CalciteContextException: From line 1, column 8 to line 1, column 26: No match found for function signature NoSuchFunction() Error: PARSE ERROR: From line 1, column 8 to line 1, column 26: No match found for function signature NoSuchFunction() {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)