-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BugFix] Fix partition resolve bug for materialized view #34880
[BugFix] Fix partition resolve bug for materialized view #34880
Conversation
fe/fe-core/src/main/java/com/starrocks/sql/analyzer/SlotRefResolver.java
Show resolved
Hide resolved
d56a3cd
to
9cdfb5f
Compare
Signed-off-by: shuming.li <ming.moriarty@gmail.com>
9cdfb5f
to
48539de
Compare
Kudos, SonarCloud Quality Gate passed!
|
@@ -709,11 +710,11 @@ private void checkPartitionExpPatterns(CreateMaterializedViewStatement statement | |||
MaterializedViewPartitionFunctionChecker.FN_NAME_TO_PATTERN.get(functionName); | |||
if (checkPartitionFunction == null) { | |||
throw new SemanticException("Materialized view partition function " + | |||
functionName + " is not support", functionCallExpr.getPos()); | |||
functionName + " is not support: " + expr.toSqlWithoutTbl(), functionCallExpr.getPos()); |
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.
functionName + " is not support: " + expr.toSqlWithoutTbl(), functionCallExpr.getPos()); | |
functionName + " is not supported: " + expr.toSqlWithoutTbl(), functionCallExpr.getPos()); |
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 62 / 72 (86.11%) file detail
|
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
Signed-off-by: shuming.li <ming.moriarty@gmail.com> (cherry picked from commit b4c7c21) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AnalyzerUtils.java # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/MaterializedViewAnalyzer.java # fe/fe-core/src/test/java/com/starrocks/analysis/CreateMaterializedViewTest.java # fe/fe-core/src/test/java/com/starrocks/sql/optimizer/rule/transformation/materialization/MvRefreshAndRewriteJDBCTest.java
Signed-off-by: shuming.li <ming.moriarty@gmail.com> (cherry picked from commit b4c7c21) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/sql/analyzer/AnalyzerUtils.java
…4880) Signed-off-by: shuming.li <ming.moriarty@gmail.com>
…4880) Signed-off-by: shuming.li <ming.moriarty@gmail.com>
Why I'm doing:
After PR(#32077), analyzer cannot resolve partition column from
select *
.It throws
Resolve partition column failed.
with nothing else.What I'm doing:
select *
by addingvisitFieldReference
inc
;Resolve partition column failed.
SlotRefResolverFactory
into an indenpendant classSlotRefResolverFactory
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: