csun5285 commented on code in PR #22159: URL: https://github.com/apache/doris/pull/22159#discussion_r1278307723
########## fe/fe-core/src/main/java/org/apache/doris/catalog/TableProperty.java: ########## @@ -86,6 +86,14 @@ public class TableProperty implements Writable { private boolean skipWriteIndexOnLoad = false; + private String compactionPolicy = ""; Review Comment: done ########## fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java: ########## @@ -3120,6 +3120,36 @@ public static void getDdlStmt(DdlStmt ddlStmt, String dbName, TableIf table, Lis sb.append(olapTable.skipWriteIndexOnLoad()).append("\""); } + // compaction policy + if (olapTable.getCompactionPolicy() != null && !olapTable.getCompactionPolicy().equals("")) { + sb.append(",\n\"").append(PropertyAnalyzer.PROPERTIES_COMPACTION_POLICY).append("\" = \""); + sb.append(olapTable.getCompactionPolicy()).append("\""); + } + + // time series compaction goal size + if (olapTable.getTimeSeriesCompactionGoalSizeMbytes() != null + && olapTable.getTimeSeriesCompactionGoalSizeMbytes() != 512) { Review Comment: done -- 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. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org