drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Barclay (Drill) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2492) JDBC : There seems to be no way to execute a CTAS statement with JDBC successfully
Date Wed, 18 Mar 2015 06:55:38 GMT

    [ https://issues.apache.org/jira/browse/DRILL-2492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366738#comment-14366738
] 

Daniel Barclay (Drill) commented on DRILL-2492:
-----------------------------------------------

> This call returned a ResultSet object which has a single value "false"

It didn't have two columns, one with false and other with a string saying something about
the error?  (That's what I've seen for CREATE VIEW statements.)



> JDBC : There seems to be no way to execute a CTAS statement with JDBC successfully
> ----------------------------------------------------------------------------------
>
>                 Key: DRILL-2492
>                 URL: https://issues.apache.org/jira/browse/DRILL-2492
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - JDBC
>            Reporter: Rahul Challapalli
>            Assignee: Daniel Barclay (Drill)
>
> git.commit.id.abbrev=7b4c887
> Query :
> {code}
> create table temp1 as select * from dfs.jdbctesting.`fewtypes.parquet`
> {code}
> I tried to execute the above query using Statement.executeQuery. This call returned a
ResultSet object which has a single value "false". And when I checked on HDFS there was no
table created.
> I tried using Statement.executeUpdate and got the below error:
> {code}
> Exception in thread "main" java.sql.SQLException: expected one result column
> 	at net.hydromatic.avatica.AvaticaStatement.executeUpdate(AvaticaStatement.java:88)
> 	at Dummy.testCTASQuery(Dummy.java:57)
> 	at Dummy.main(Dummy.java:30)
> {code}
> Let me know if I am not using JDBC correctly.



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

Mime
View raw message