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

Switch to Threaded View
Hive, mail # dev - Review Request: HIVE-4321 Add Compile/Execute support to Hive Server 2


Copy link to this message
-
Re: Review Request: HIVE-4321 Add Compile/Execute support to Hive Server 2
Sarah Parra 2013-04-11, 23:59

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

(Updated April 11, 2013, 11:59 p.m.)
Review request for hive.
Changes
-------

Updated bug reference to just contain ID instead of the whole URL.
Description
-------

Adds support for query compilation in Hive Server 2 and adds Thrift support for compile/execute APIs.

This enables scenarios that need to compile a query before it is executed, e.g. and ODBC driver that implements SQLPrepare/SQLExecute. This is commonly used for a client that needs metadata for the query before it is executed.

The patch does not include the auto-generated thrift files per request in the associated JIRA.
This addresses bug HIVE-4321.
    https://issues.apache.org/jira/browse/HIVE-4321
Diffs
-----

  service/if/TCLIService.thrift 4d7e89e
  service/src/java/org/apache/hive/service/cli/CLIService.java b53599b
  service/src/java/org/apache/hive/service/cli/EmbeddedCLIServiceClient.java 38d64c8
  service/src/java/org/apache/hive/service/cli/ICLIService.java 7e863b5
  service/src/java/org/apache/hive/service/cli/operation/ExecuteStatementOperation.java 9a1da59
  service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java 2fee93e
  service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java 18594cb
  service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java 43d79aa
  service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIServiceClient.java 5eb6157

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

Patch does not contain unit tests yet, but we have done some preliminary testing of this through our ODBC driver.
Thanks,

Sarah Parra