[ https://issues.apache.org/jira/browse/HIVE-18338?focusedWorklogId=450116&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-450116 ]
ASF GitHub Bot logged work on HIVE-18338: ----------------------------------------- Author: ASF GitHub Bot Created on: 24/Jun/20 00:26 Start Date: 24/Jun/20 00:26 Worklog Time Spent: 10m Work Description: github-actions[bot] closed pull request #284: URL: https://github.com/apache/hive/pull/284 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 450116) Time Spent: 20m (was: 10m) > [Client, JDBC] Expose async interface through hive JDBC. > -------------------------------------------------------- > > Key: HIVE-18338 > URL: https://issues.apache.org/jira/browse/HIVE-18338 > Project: Hive > Issue Type: Improvement > Components: Clients, JDBC > Affects Versions: 2.3.2 > Reporter: Amruth Sampath > Assignee: Amruth Sampath > Priority: Minor > Labels: pull-request-available > Attachments: HIVE-18338.patch, HIVE-18338.patch.1, > HIVE-18338.patch.2, HIVE-18338.patch.3, HIVE-18338.patch.4 > > Time Spent: 20m > Remaining Estimate: 0h > > This exposes async API in HiveStatement (jdbc module) > The JDBC interface always have had strict synchronous APIs. > So the hive JDBC implementation also had to follow it though the hive server > is fully asynchronous. > Developers trying to build proxies on top of hive servers end up writing > thrift client from scratch to make it asynchronous and robust to its restarts. > The common pattern is > # Submit query, get operation handle and store in a persistent store > # Poll and wait for completion > # Stream results > # In the event of restarts, restore OperationHandle from persistent store > and continue execution. > The patch does 2 things > * exposes operation handle (once a query is submitted) > {{getOperationhandle()}} > Developers can persist this along with the actual hive server url > {{getJdbcUrl}} > * latch APIs > Developers can create a statement and latch on to an operation handle that > was persisted earlier. For latch, the statement should be created from the > actual hive server URI connection in which the query was submitted. -- This message was sent by Atlassian Jira (v8.3.4#803005)