You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Parth Chandra (JIRA)" <ji...@apache.org> on 2015/03/18 23:32:38 UTC
[jira] [Closed] (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: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)