amorynan commented on code in PR #55124:
URL: https://github.com/apache/doris/pull/55124#discussion_r2292550494


##########
fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java:
##########
@@ -1868,4 +1877,24 @@ public static boolean 
analyzeEnableTypedPathsToSparse(Map<String, String> proper
         }
         return enableTypedPathsToSparse;
     }
+
+    public static int analyzeVariantMaxSparseColumnStatisticsSize(Map<String, 
String> properties, int defuatValue)
+                                                                               
 throws AnalysisException {
+        int maxSparseColumnStatisticsSize = defuatValue;
+        if (properties != null && 
properties.containsKey(PROPERTIES_VARIANT_MAX_SPARSE_COLUMN_STATISTICS_SIZE)) {
+            String maxSparseColumnStatisticsSizeStr =
+                    
properties.get(PROPERTIES_VARIANT_MAX_SPARSE_COLUMN_STATISTICS_SIZE);
+            try {
+                maxSparseColumnStatisticsSize = 
Integer.parseInt(maxSparseColumnStatisticsSizeStr);
+                if (maxSparseColumnStatisticsSize < 0 || 
maxSparseColumnStatisticsSize > 10000) {
+                    throw new 
AnalysisException("variant_max_sparse_column_statistics_size must between 0 and 
10000 ");

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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to