[ 
https://issues.apache.org/jira/browse/DRILL-2492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Chandra closed DRILL-2492.
--------------------------------
    Resolution: Not a Problem

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

Reply via email to