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

Does gohive support transaction? #46

Open
tonyyang-svail opened this issue Jun 3, 2019 · 1 comment
Open

Does gohive support transaction? #46

tonyyang-svail opened this issue Jun 3, 2019 · 1 comment
Assignees

Comments

@tonyyang-svail
Copy link
Contributor

tonyyang-svail commented Jun 3, 2019

I tried the following SQL statements

CREATE DATABASE IF NOT EXISTS iris;
DROP TABLE IF EXISTS iris.train;
CREATE TABLE iris.train (
       sepal_length float,
       sepal_width  float,
       petal_length float,
       petal_width  float,
       class int);
INSERT INTO TABLE iris.train VALUES
(6.4,2.8,5.6,2.2,2),
(5.0,2.3,3.3,1.0,1),
(4.9,2.5,4.5,1.7,2);

And received error Table not found train. I would suspect Hive runs the statement asynchronously. Is there an option to make all statement atomic?

@yuyicg
Copy link
Contributor

yuyicg commented Jun 3, 2019

seeing https://github.com/apache/hive/blob/master/service-rpc/if/TCLIService.thrift#L710, it seems that hive thrift api provide a parameter runAsync in struct TExecuteStatementReq to set whether the command should be executed asynchronously and the default behavior is false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants