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


##########
fe/fe-core/src/main/java/org/apache/doris/common/util/PropertyAnalyzer.java:
##########
@@ -2391,19 +2393,15 @@ public static int 
analyzeVariantMaxSubcolumnsCount(Map<String, String> propertie
         return maxSubcoumnsCount;
     }
 
+    // variant_enable_typed_paths_to_sparse is internal now: a column of an 
older version keeps its value, and a new one
+    // takes it from the session variable 
debug_variant_enable_typed_paths_to_sparse, which only tests set. The
+    // property is refused whatever its value.
     public static boolean analyzeEnableTypedPathsToSparse(Map<String, String> 
properties,
                         boolean defaultValue) throws AnalysisException {
-        boolean enableTypedPathsToSparse = defaultValue;
         if (properties != null && 
properties.containsKey(PROPERTIES_VARIANT_ENABLE_TYPED_PATHS_TO_SPARSE)) {
-            String enableTypedPathsToSparseStr = 
properties.get(PROPERTIES_VARIANT_ENABLE_TYPED_PATHS_TO_SPARSE);
-            try {
-                enableTypedPathsToSparse = 
Boolean.parseBoolean(enableTypedPathsToSparseStr);
-            } catch (Exception e) {
-                throw new 
AnalysisException("variant_enable_typed_paths_to_sparse must be `true` or 
`false`");
-            }
-            properties.remove(PROPERTIES_VARIANT_ENABLE_TYPED_PATHS_TO_SPARSE);
+            throw new AnalysisException("variant_enable_typed_paths_to_sparse 
is not supported");

Review Comment:
    silently accepted and ignored valid boolean values of 
variant_enable_typed_paths_to_sparse for backward compatibility with legacy DDL 
and persisted SQL



##########
fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java:
##########
@@ -3819,14 +3809,15 @@ public void 
checkAnnIndexCandidateRowsPercentThreshold(String value) {
     )
     public long defaultVariantDocMaterializationMinRows = 0L;
 
+    // the shard count with and without doc mode
     @VarAttrDef.VarAttr(
             name = DEBUG_VARIANT_DOC_HASH_SHARD_COUNT,
             flag = VarAttrDef.INVISIBLE,
             needForward = true,
             checker = "checkDefaultVariantSettable",
             fuzzy = true
     )
-    public int defaultVariantDocHashShardCount = 64;
+    public int defaultVariantDocHashShardCount = 0;

Review Comment:
   ok



-- 
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