github-actions[bot] commented on code in PR #62295:
URL: https://github.com/apache/doris/pull/62295#discussion_r3057687174


##########
fe/fe-core/src/main/java/org/apache/doris/statistics/OlapAnalysisTask.java:
##########
@@ -328,7 +328,11 @@ protected void doFull() throws Exception {
         if (StatisticsUtil.enablePartitionAnalyze() && 
tbl.isPartitionedTable()) {
             doPartitionTable();
         } else {
-            StringSubstitutor stringSubstitutor = new 
StringSubstitutor(buildSqlParams());
+            Map<String, String> params = buildSqlParams();

Review Comment:
   This only fixes the non-partition full-analyze branch. When 
`enable_partition_analyze` is true and the table is partitioned, `doFull()` 
still goes through `doPartitionTable()`, which eventually merges with 
`MERGE_PARTITION_TEMPLATE` in `BaseAnalysisTask` and that template still 
hardcodes `null as hot_value`. In that configuration, `ANALYZE TABLE ... WITH 
SYNC` will continue to produce no hot values for partitioned OLAP tables, so 
the behavior change described in the PR is still incomplete. The new tests all 
stub `enablePartitionAnalyze()` to `false`, so they won't catch this path.



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