[fix](statistics)Reanalyze olapTable if getRowCount is not 0 and last time row count is 0 (#30096)

Sample analyze may write 0 result if getRowCount is not updated while analyzing. So we need to reanalyze the table if getRowCount > 0 and previous analyze row count is 0. Otherwise the stats for this table may stay 0 for ever before user load new data to this table.
This commit is contained in:
Jibing-Li
2024-01-19 10:47:15 +08:00
committed by yiguolei
parent fd6ec97731
commit 668a68967c
6 changed files with 13 additions and 5 deletions

View File

@ -1565,7 +1565,7 @@ public class Config extends ConfigBase {
"This parameter controls the time interval for automatic collection jobs to check the health of table"
+ "statistics and trigger automatic collection"
})
public static int auto_check_statistics_in_minutes = 10;
public static int auto_check_statistics_in_minutes = 5;
/**
* If set to TRUE, the compaction slower replica will be skipped when select get queryable replicas