-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[fix](create-table)The CREATE TABLE IF NOT EXISTS AS SELECT statement should refrain from performing any INSERT operations if the table already exists #35210
Conversation
… should refrain from performing any INSERT operations if the table already exists
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
1 similar comment
run buildall |
TPC-H: Total hot run time: 40040 ms
|
TPC-DS: Total hot run time: 169749 ms
|
ClickBench: Total hot run time: 30.56 s
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
… should refrain from performing any INSERT operations if the table already exists (#35210)
… should refrain from performing any INSERT operations if the table already exists (#35210)
… should refrain from performing any INSERT operations if the table already exists (apache#35210)
… should refrain from performing any INSERT operations if the table already exists apache#35210 (apache#35419)
what happend
env
select count(1) from image result is 1
select count(1) from image result is 2
An INSERT operation was performed despite the table already existing.
The issue persists across both the new and legacy optimizers.
Reference documentation:
changes
The CREATE TABLE IF NOT EXISTS AS SELECT statement should refrain from performing any INSERT operations if the table already exists
test
add test
affected version