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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -5473,8 +5475,9 @@ public DataType 
visitVariantPredefinedFields(VariantPredefinedFieldsContext ctx)
                                         
.analyzeEnableTypedPathsToSparse(properties, enableTypedPathsToSparse);
             variantMaxSparseColumnStatisticsSize = 
PropertyAnalyzer.analyzeVariantMaxSparseColumnStatisticsSize(
                                         properties, 
variantMaxSparseColumnStatisticsSize);
-            variantSparseHashShardCount =
-                    
PropertyAnalyzer.analyzeVariantSparseHashShardCount(properties, 
variantSparseHashShardCount);
+            // The DDL of older versions sets the shard count without doc mode 
with it; variant_doc_hash_shard_count
+            // sets the shard count in either mode now, so the value is 
ignored.
+            PropertyAnalyzer.analyzeVariantSparseHashShardCount(properties, 0);

Review Comment:
   variant_sparse_hash_shard_count is deprecated and silently ignored for DDL 
compatibility; variant_doc_hash_shard_count is now the unified shard count 
property.



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