-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Bug](MaterializedView) Fix bug of light schema change do not set right unique id cause MV coredump #11396
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
Conversation
yiguolei
left a comment
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
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
| Preconditions.checkNotNull(defineExpr != null); | ||
| Column result = new Column(name, type, isKey, aggregationType, ColumnDef.DefaultValue.ZERO, ""); | ||
| result.setDefineExpr(defineExpr); | ||
| result.setUniqueId(olapTable.incAndGetMaxColUniqueId()); |
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.
In the future, this change will cause problem when we want to support mv do light schema change and olapTable.incAndGetMaxColUniqueId() need to write editlog for duration.
the commit can justly use temporaryly.
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.
could you try like this in MaterializedViewHandler.java checkAndPrepareMaterializedView()
for (Column column : rollupSchema) {
column.setUniqueId(Column.COLUMN_UNIQUE_ID_INIT_VALUE);
}
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.
could you try like this in MaterializedViewHandler.java checkAndPrepareMaterializedView()
for (Column column : rollupSchema) { column.setUniqueId(Column.COLUMN_UNIQUE_ID_INIT_VALUE); }
Hi, Do you can review #10792? I set uniqid also.
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.
@ the change will override yours
could you try like this in MaterializedViewHandler.java checkAndPrepareMaterializedView()
for (Column column : rollupSchema) { column.setUniqueId(Column.COLUMN_UNIQUE_ID_INIT_VALUE); }Hi, Do you can review #10792? I set uniqid also.
the change will override yours
| defaultDb = "regression_test" | ||
|
|
||
| jdbcUrl = "jdbc:mysql://127.0.0.1:9030/?" | ||
| jdbcUrl = "jdbc:mysql://127.0.0.1:9031/?" |
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.
need reset
Proposed changes
Issue Number: close #11334
Problem summary
Describe your changes.
Checklist(Required)
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...