[feature-wip](MTMV) Support refresh mtmv (#16218)

Support using this sql to refresh mtmv manually. It can generate a mtmv task right now.

```
REFRESH MATERIALIZED VIEW test_mv_view [complete];
```

You can use `show mtmv task` to show the latest task.

In this pr, I also try to clear the mtmv tasks when drop the mtmv to make sure test suite to be right
This commit is contained in:
huangzhaowei
2023-02-04 20:17:45 +08:00
committed by GitHub
parent 60386a46a6
commit 1146bde695
7 changed files with 82 additions and 5 deletions

View File

@ -1812,6 +1812,9 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = true)
public static long scheduler_mtmv_task_expired = 24 * 60 * 60L; // 1day
@ConfField(mutable = true, masterOnly = true)
public static boolean keep_scheduler_mtmv_task_when_job_deleted = false;
/**
* The candidate of the backend node for federation query such as hive table and es table query.
* If the backend of computation role is less than this value, it will acquire some mix backend.