branch-3.0: [fix])(catalog)add equals for external table #47956#48348
Merged
dataroaring merged 1 commit intobranch-3.0from Mar 10, 2025
Merged
branch-3.0: [fix])(catalog)add equals for external table #47956#48348dataroaring merged 1 commit intobranch-3.0from
dataroaring merged 1 commit intobranch-3.0from
Conversation
### What problem does this PR solve?
The materialized view is created based on external table, and sometimes
refreshing the materialized view may report that the corresponding
partition cannot be found.
The reason is that when the materialized view is refreshed, predicates
are generated based on the refreshed partition, and the problematic plan
does not include predicates.
The code for adding predicates is as follows:
```
if (predicates.getPredicates().containsKey(table)) {
return new LogicalFilter<>(ImmutableSet.of(ExpressionUtils.or(predicates.getPredicates().get(table))),
unboundRelation);
}
```
If the table and predicates. get() are not the same object when setting
predicates, it will not be obtained, resulting in the absence of
predicates
PS: The table cache will refresh within 24 hours by default, and the
objects will change
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
TPC-H: Total hot run time: 40330 ms |
TPC-DS: Total hot run time: 196866 ms |
ClickBench: Total hot run time: 32.85 s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-picked from #47956