Please change the configuration by using this command:
WbSetConfig workbench.db.hive.extended.createstmt=false
That should workaround this bug in the JDBC driver
Regards
Thomas
Ryan wrote on 30.05.2013 15:37:
> First, thanks for the work done on this tool. It is by far my favorite for accessing databases via JDBC.
>
> I also run into this issue when accessing a Hive source. Here is a debug log of a simple query:
>
> 2013-05-30 09:17 INFO =================== Log started ===================
> 2013-05-30 09:17 INFO Using configdir: C:\apps\Workbench\.sqlworkbench
> 2013-05-30 09:17 INFO Starting SQL Workbench/J, Build 114 (2013-01-21 19:41)
> 2013-05-30 09:17 INFO Java version=1.6.0_45, java.home=C:\Program Files\Java\jre6, vendor=Sun Microsystems Inc., name=Java HotSpot(TM) Client VM
> 2013-05-30 09:17 INFO Operating System=Windows XP, version=5.1, platform=x86
> 2013-05-30 09:19 INFO Creating new connection for [{bds}/__hive] for driver=org.apache.hive.jdbc.HiveDriver
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/commons-logging-1.0.4.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/hive-cli-0.12.0-SNAPSHOT.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/hive-jdbc-0.12.0-SNAPSHOT.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/hive-service-0.12.0-SNAPSHOT.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/hive-shims-0.12.0-SNAPSHOT.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/libthrift-0.9.0.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/log4j-1.2.16.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/slf4j-api-1.6.1.jar
> 2013-05-30 09:19 INFO Adding ClassLoader URL=file:/C:/stuff/jdbc%20drivers/hive2/slf4j-log4j12-1.6.1.jar
> 2013-05-30 09:19 INFO Using DBID=hive
> 2013-05-30 09:19 DEBUG Re-Use statement: false, cache current schema: false, SQL: null
> 2013-05-30 09:19 ERROR Error when retrieving identifier quote character Method not supported
> java.sql.SQLException: Method not supported
> at org.apache.hive.jdbc.HiveDatabaseMetaData.getIdentifierQuoteString(HiveDatabaseMetaData.java:315)
> at workbench.db.DbMetadata.<init>(DbMetadata.java:332)
> at workbench.db.WbConnection.setSqlConnection(WbConnection.java:452)
> at workbench.db.WbConnection.<init>(WbConnection.java:113)
> at workbench.db.ConnectionMgr.connect(ConnectionMgr.java:232)
> at workbench.db.ConnectionMgr.getConnection(ConnectionMgr.java:145)
> at workbench.gui.components.ConnectionSelector.doConnect(ConnectionSelector.java:215)
> at workbench.gui.components.ConnectionSelector$2.run(ConnectionSelector.java:133)
>
> 2013-05-30 09:19 INFO Using quote escape character: "
> 2013-05-30 09:19 INFO Using search string escape character: \
> 2013-05-30 09:19 DEBUG Using table types returned by the JDBC driver: [EXTERNAL_TABLE, MANAGED_TABLE]
> 2013-05-30 09:19 DEBUG Using catalog separator: [.]
> 2013-05-30 09:19 INFO Connected to: [Hive], Database version: [0.10.0], Driver version: [0.12.0-SNAPSHOT], JDBC Version: [3.0], ID: [Wb1-1]
> 2013-05-30 09:19 WARN Error retrieving DB version (Method not supported)
> 2013-05-30 09:19 ERROR Error executing:
> select day_id from default.fiscal_calendar limit 10
> Method not supported
> java.sql.SQLException: Method not supported
> at org.apache.hive.jdbc.HiveConnection.createStatement(HiveConnection.java:309)
> at workbench.db.WbConnection.createStatementForQuery(WbConnection.java:855)
> at workbench.sql.commands.SelectCommand.execute(SelectCommand.java:85)
> at workbench.sql.StatementRunner.runStatement(StatementRunner.java:419)
> at workbench.gui.sql.SqlPanel.displayResult(SqlPanel.java:3024)
> at workbench.gui.sql.SqlPanel.runStatement(SqlPanel.java:1983)
> at workbench.gui.sql.SqlPanel$13.run(SqlPanel.java:1940)
>
> 2013-05-30 09:19 DEBUG SQL execution finished
> 2013-05-30 09:19 INFO Disconnecting: [__hive], ID=Wb1-1
> --
> You received this message because you are subscribed to the Google Groups "SQL Workbench/J - DBMS independent SQL tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sql-workbenc...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>