[opt](stats) Support display of auto analyze jobs (#24135)

### Support dispaly of auto analyze jobs

After this PR, users and DBA could use such grammar to check the execution status of auto analyze jobs:

```sql

SHOW AUTO ANALYZE [tbl_name] [WHERE STATE='SOME STATE']
```

Record count of history auto analyze job could be configured by setting FE option: auto_analyze_job_record_count, default value is 2000

### Enhance auto analyze

After this PR, auto jobs those created automatically will no longer execute beyond a specific time frame.
This commit is contained in:
AKIRA
2023-09-14 18:10:04 +09:00
committed by GitHub
parent 4fbb25bc55
commit 0be0b8ff58
19 changed files with 406 additions and 143 deletions

View File

@ -2190,4 +2190,11 @@ public class Config extends ConfigBase {
+ "统计信息", "Whether to enable automatic sampling for large tables, which, when enabled, automatically"
+ "collects statistics through sampling for tables larger than 'huge_table_lower_bound_size_in_bytes'"})
public static boolean enable_auto_sample = false;
@ConfField(description = {
"控制统计信息的自动触发作业执行记录的持久化行数",
"Determine the persist number of automatic triggered analyze job execution status"
})
public static long auto_analyze_job_record_count = 20000;
}