Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public boolean isFinalState() {
}

public enum JobType {
ROLLUP, SCHEMA_CHANGE
// Must not remove it or change the order, because catalog depend on it to traverse the image
// and load meta data
ROLLUP, SCHEMA_CHANGE, DECOMMISSION_BACKEND
}

@SerializedName(value = "type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2113,6 +2113,9 @@ public long saveAlterJob(CountingDataOutputStream dos, long checksum, JobType ty
alterJobsV2 = this.getMaterializedViewHandler().getAlterJobsV2();
} else if (type == JobType.SCHEMA_CHANGE) {
alterJobsV2 = this.getSchemaChangeHandler().getAlterJobsV2();
} else if (type == JobType.DECOMMISSION_BACKEND) {
// Load alter job need decommission backend type to load image
alterJobsV2 = Maps.newHashMap();
} else {
throw new IOException("Invalid alter job type: " + type.name());
}
Expand Down