Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIVE-18338 Exposing asynchronous execution through hive-jdbc client #284

Closed
wants to merge 4 commits into from

Conversation

amrk7s
Copy link

@amrk7s amrk7s commented Dec 25, 2017

Problem statement

Hive JDBC currently exposes 2 methods related to asynchronous execution
executeAsync() - to trigger a query execution and return immediately.
waitForOperationToComplete() - which waits till the current execution is complete blocking the user thread.

This has one problem

  • If the client process goes down, there is no way to resume queries although hive server is completely asynchronous.

Proposal

If operation handle could be exposed, we can latch on to an active execution of a query.

Code changes

Operation handle is exposed. So client can keep a copy.
latchSync() and latchAsync() methods take an operation handle and try to latch on to the current execution in hive server if present

@amrk7s
Copy link
Author

amrk7s commented Dec 25, 2017

Travis CI seem to have failed? Is this a problem? Please let me know.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.

@github-actions github-actions bot added the stale label Jun 16, 2020
@github-actions github-actions bot closed this Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant