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/03/18 07:55:38 UTC

[jira] [Commented] (DRILL-2492) JDBC : There seems to be no way to execute a CTAS statement with JDBC successfully

    [ 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)