-
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
[improvement](mtmv) Improve the performance for query rewritting by materialized view #31886
Conversation
Thank you for your contribution to Apache Doris. |
run buildall |
2 similar comments
run buildall |
run buildall |
@@ -1578,6 +1581,10 @@ public void setEnableLeftZigZag(boolean enableLeftZigZag) { | |||
"whether to use a materialized view that contains the foreign table " | |||
+ "when using rewriting based on struct info"}) | |||
public boolean materializedViewRewriteEnableContainExternalTable = false; | |||
@VariableMgr.VarAttr(name = MATERIALIZED_VIEW_REWRITE_SUCCESS_CANDIDATE_NUM, needForward = true, | |||
description = {"透明改写成功的结果集合,允许参与到CBO候选的最大数量", |
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.
description = {"透明改写成功的结果集合,允许参与到CBO候选的最大数量", | |
description = {"异步物化视图透明改写成功的结果集合,允许参与到CBO候选的最大数量", |
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.
OK,hava fixed it
@@ -150,13 +155,17 @@ public void setSuccess(boolean success) { | |||
/** | |||
* recordFailReason | |||
*/ | |||
public void recordFailReason(ObjectId objectId, Pair<String, String> summaryAndReason) { | |||
public void recordFailReason(StructInfo structInfo, Pair<String, String> summaryAndReason) { |
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.
maybe use this signature is better
public void recordFailReason(StructInfo structInfo, Pair<String, String> summaryAndReason) { | |
public void recordFailReason(StructInfo structInfo, String summary, Supplier<String> reasonSupplier) { | |
... | |
String reason = enableRecordFailureDetail ? reasonSupplier.get() : "" | |
... |
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.
have fixed it
run buildall |
run buildall |
1 similar comment
run buildall |
8347f3b
to
d41189f
Compare
run buildall |
PR approved by anyone and no changes requested. |
PR approved by at least one committer and no changes requested. |
…aterialized view (#31886) - Limit the number of times for the query rewritting to the group - Remove the unnecessary log and explain detail info in query
…aterialized view (#31886) - Limit the number of times for the query rewritting to the group - Remove the unnecessary log and explain detail info in query
Proposed changes
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...