drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun Chang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-851) bigint * time type not supported
Date Wed, 28 May 2014 21:33:02 GMT
Chun Chang created DRILL-851:
--------------------------------

             Summary: bigint * time type not supported
                 Key: DRILL-851
                 URL: https://issues.apache.org/jira/browse/DRILL-851
             Project: Apache Drill
          Issue Type: Bug
          Components: SQL Parser
            Reporter: Chun Chang


#Wed May 28 10:41:14 PDT 2014
git.commit.id.abbrev=01bf849

The multiplication between a bigint and time type fails the parser:

0: jdbc:drill:schema=dfs> select c_bigint * cast(c_time as time) from data;
Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id:
"dca54fae-9287-4ebb-8208-14dd3a244541"
endpoint {
  address: "qa-node119.qa.lab"
  user_port: 31010
  control_port: 31011
  data_port: 31012
}
error_type: 0
message: "Failure while parsing sql. < ValidationException:[ org.eigenbase.util.EigenbaseContextException:
From line 1, column 8 to line 1, column 38 ] < EigenbaseContextException:[ From line 1,
column 8 to line 1, column 38 ] < SqlValidatorException:[ Cannot apply '*' to arguments
of type '<ANY> * <TIME(0)>'. Supported form(s): '<NUMERIC> * <NUMERIC>'
'<DATETIME_INTERVAL> * <NUMERIC>'
'<NUMERIC> * <DATETIME_INTERVAL>' ]"
]
Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message