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

Insert select Stmt keep the same semantics with mysql (#1626) #1628

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

wangbo
Copy link
Contributor

@wangbo wangbo commented Aug 12, 2019

No description provided.

@@ -639,6 +639,11 @@ private void handleInsertStmt() throws Exception {
return;
}

if (insertStmt.getQueryStmt() != null && (coord.getCommitInfos() == null || coord.getCommitInfos().isEmpty())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we have already begin a transaction for this insert statement, if you return here now, it will become a pending transaction.
I think that you should abort this transaction before return to user

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌,I will check

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we have already begin a transaction for this insert statement, if you return here now, it will become a pending transaction.
I think that you should abort this transaction before return to user

add abort operation;
sry ,I habitually performed a git rebase operation

Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@imay imay merged commit c8352a9 into apache:master Aug 13, 2019
@imay imay mentioned this pull request Sep 26, 2019
SWJTU-ZhangLei pushed a commit to SWJTU-ZhangLei/incubator-doris that referenced this pull request Jul 25, 2023
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

Successfully merging this pull request may close these issues.

2 participants