You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/05/28 02:36:42 UTC
[GitHub] [incubator-doris] EmmyMiao87 commented on a change in pull request #3705: Serialize origin stmt in Rollup Job and MV Meta
EmmyMiao87 commented on a change in pull request #3705:
URL: https://github.com/apache/incubator-doris/pull/3705#discussion_r431549428
##########
File path: fe/src/main/java/org/apache/doris/alter/RollupJobV2.java
##########
@@ -770,4 +714,85 @@ public void setJobState(JobState jobState) {
this.jobState = jobState;
}
+ private void setColumnsDefineExpr(List<MVColumnItem> items) {
+ for (MVColumnItem item : items) {
+ for (Column column : rollupSchema) {
+ if (column.getName().equals(item.getName())) {
+ column.setDefineExpr(item.getDefineExpr());
+ break;
+ }
+ }
+ }
+ }
+
+ @Override
+ public void write(DataOutput out) throws IOException {
+ String json = GsonUtils.GSON.toJson(this, AlterJobV2.class);
+ Text.writeString(out, json);
+ }
+
+ public static RollupJobV2 read(DataInput in) throws IOException {
Review comment:
This is also used by the Meta <85. If the Meta is more then 86, the `read` of AlterJobV2 wil be used.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org