EmmyMiao87 commented on a change in pull request #3705:
URL: https://github.com/apache/incubator-doris/pull/3705#discussion_r431651256
##########
File path: fe/src/main/java/org/apache/doris/alter/AlterJobV2.java
##########
@@ -220,16 +233,20 @@ protected boolean checkTableStable(Database db) throws
AlterCancelException {
public abstract void replay(AlterJobV2 replayedJob);
public static AlterJobV2 read(DataInput in) throws IOException {
- JobType type = JobType.valueOf(Text.readString(in));
- switch (type) {
- case ROLLUP:
- return RollupJobV2.read(in);
- case SCHEMA_CHANGE:
- return SchemaChangeJobV2.read(in);
- default:
- Preconditions.checkState(false);
- return null;
+ if (Catalog.getCurrentCatalogJournalVersion() <
FeMetaVersion.VERSION_86) {
+ JobType type = JobType.valueOf(Text.readString(in));
+ switch (type) {
+ case ROLLUP:
+ return RollupJobV2.read(in);
+ case SCHEMA_CHANGE:
+ return SchemaChangeJobV2.read(in);
+ default:
+ Preconditions.checkState(false);
+ return null;
+ }
}
Review comment:
Added
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]