-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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](PreparedStatement) nondeterministic functions in prepared statement should not be short circuited #46003
Conversation
…ment should not be short circuited
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
run buildall |
d743320
to
20e9098
Compare
run buildall |
if (ConnectContext.get() != null && ConnectContext.get().getCommand() == MysqlCommand.COM_STMT_EXECUTE | ||
&& !buildResult.second.isDeterministic()) { | ||
statementContext.setHasNondeterministicInPreparedStatement(true); | ||
} |
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.
set this flag for all statement or mv this flag out of statement conctext
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.
done
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ExecuteCommand.java
Outdated
Show resolved
Hide resolved
ac9c499
to
d2ed545
Compare
TPC-H: Total hot run time: 32811 ms
|
TPC-DS: Total hot run time: 196519 ms
|
ClickBench: Total hot run time: 31.91 s
|
run buildall |
TPC-H: Total hot run time: 32609 ms
|
TPC-DS: Total hot run time: 190034 ms
|
ClickBench: Total hot run time: 32.03 s
|
d2ed545
to
f4a7c82
Compare
run buildall |
TPC-H: Total hot run time: 32440 ms
|
TPC-DS: Total hot run time: 190291 ms
|
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/ExpressionAnalyzer.java
Outdated
Show resolved
Hide resolved
ClickBench: Total hot run time: 31.09 s
|
run buildall |
f4a7c82
to
ecb87d6
Compare
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 32496 ms
|
TPC-DS: Total hot run time: 190614 ms
|
ClickBench: Total hot run time: 30.77 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
…ment should not be short circuited (#46003)
…ment should not be short circuited (#46003)
…epared statement should not be short circuited #46003 (#46108) Cherry-picked from #46003 Co-authored-by: lihangyu <[email protected]>
…epared statement should not be short circuited #46003 (#46109) Cherry-picked from #46003 Co-authored-by: lihangyu <[email protected]>
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)