csun5285 commented on code in PR #22159:
URL: https://github.com/apache/doris/pull/22159#discussion_r1278307733


##########
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) {
+                sb.append(",\n\"").append(PropertyAnalyzer
+                                    
.PROPERTIES_TIME_SERIES_COMPACTION_GOAL_SIZE_MBYTES).append("\" = \"");
+                
sb.append(olapTable.getTimeSeriesCompactionGoalSizeMbytes()).append("\"");
+            }
+
+            // time series compaction file count threshold
+            if (olapTable.getTimeSeriesCompactionFileCountThreshold() != null
+                                                && 
olapTable.getTimeSeriesCompactionFileCountThreshold() != 2000) {

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) {
+                sb.append(",\n\"").append(PropertyAnalyzer
+                                    
.PROPERTIES_TIME_SERIES_COMPACTION_GOAL_SIZE_MBYTES).append("\" = \"");
+                
sb.append(olapTable.getTimeSeriesCompactionGoalSizeMbytes()).append("\"");
+            }
+
+            // time series compaction file count threshold
+            if (olapTable.getTimeSeriesCompactionFileCountThreshold() != null
+                                                && 
olapTable.getTimeSeriesCompactionFileCountThreshold() != 2000) {
+                sb.append(",\n\"").append(PropertyAnalyzer
+                                    
.PROPERTIES_TIME_SERIES_COMPACTION_FILE_COUNT_THRESHOLD).append("\" = \"");
+                
sb.append(olapTable.getTimeSeriesCompactionFileCountThreshold()).append("\"");
+            }
+
+            // time series compaction time threshold
+            if (olapTable.getTimeSeriesCompactionTimeThresholdSeconds() != null
+                                                && 
olapTable.getTimeSeriesCompactionTimeThresholdSeconds() != 3600) {

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

Reply via email to