-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Enhancement] Display inactive reason for materialized view #21591
[Enhancement] Display inactive reason for materialized view #21591
Conversation
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.
Good Work~
LOG.warn("Setting the materialized view {}({}) to invalid because " + | ||
"the table {} was renamed.", mv.getName(), mv.getId(), olapTable.getName()); | ||
mv.setActive(false); | ||
mv.setInactiveAndReason("base table renamed: " + olapTable.getName()); |
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.
better to keep the log
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
45a69e1
to
1dd866f
Compare
@Mergifyio rebase |
✅ Branch has been successfully rebased |
1dd866f
to
b19781c
Compare
b19781c
to
6406c68
Compare
@Mergifyio rebase |
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
Signed-off-by: Murphy <[email protected]>
✅ Branch has been successfully rebased |
2eef791
to
a2ee96b
Compare
Kudos, SonarCloud Quality Gate passed! |
[FE PR Coverage Check]😞 fail : 16 / 37 (43.24%) file detail
|
// inactive_reason | ||
ColumnPtr column = (*chunk)->get_column_by_slot_id(slot_id); | ||
const std::string* str = &tbl_status.inactive_reason; | ||
Slice value(str->c_str(), str->length()); | ||
fill_column_with_slot<TYPE_VARCHAR>(column.get(), (void*)&value); | ||
break; | ||
} | ||
case 7: { |
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.
Will be compatibility questions with the BE upgrade?
@Mergifyio backport branch-3.0 |
✅ Backports have been created
|
(cherry picked from commit 7949502) # Conflicts: # be/src/exec/schema_scanner/schema_materialized_views_scanner.cpp # fe/fe-core/src/main/java/com/starrocks/catalog/system/information/MaterializedViewsSystemTable.java # fe/fe-core/src/main/java/com/starrocks/server/LocalMetastore.java # fe/fe-core/src/main/java/com/starrocks/service/FrontendServiceImpl.java
…s#21591) Signed-off-by: Moonm3n <[email protected]>
What type of PR is this:
Which issues of this PR fixes :
Fixes #21501
Problem Summary(Required) :
Checklist:
Bugfix cherry-pick branch check: