Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive, mail # dev - Review Request 13948: JDBC driver assumes executeStatement is synchronous


Copy link to this message
-
Review Request 13948: JDBC driver assumes executeStatement is synchronous
Henry Robinson 2013-09-03, 18:01

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/13948/
-----------------------------------------------------------

Review request for hive.
Bugs: HIVE-5060
    https://issues.apache.org/jira/browse/HIVE-5060
Repository: hive-git
Description
-------

This patch adds polling after the executeStatement call. In Hive's case, this results in a single extra RPC, for other implementations that may have made executeStatement asynchronous, this allows INSERTs to run to completion before returning from the JDBC-level execute method.
Diffs
-----

  jdbc/src/java/org/apache/hive/jdbc/HiveStatement.java 982ceb8

Diff: https://reviews.apache.org/r/13948/diff/
Testing
-------

Confirmed that the INSERT problem goes away when run against Cloudera Impala, and that Hive requests see no observable latency penalty.
Thanks,

Henry Robinson