说明
用户可通过如下命令查询版本:select value from system.build_options where name = 'VERSION_SCM' limit 10;
版本 | 同步物化视图状态 |
|---|---|
cdw_2.3_stable_2 | 稳定版本 |
cdw_2.3_stable_3 | 稳定版本 |
cdw_2.3_stable_4 | 稳定版本 |
引擎类型 | 刷新 | 透明改写 |
|---|---|---|
CnchMergeTree | 支持 | 不支持 |
CnchUniqueMergeTree | 不支持 | 不支持 |
CnchAggregatingMergeTree | 支持 | 不支持 |
Hive | 不支持 | 不支持 |
场景 | 子项 | 刷新 | 透明改写 |
|---|---|---|---|
单表 | 聚合 | 支持 | 不支持 |
非聚合 | 支持 | 不支持 | |
子查询 | 不支持 | 不支持 | |
多表 union | 不支持 | 不支持 | |
多表 Join | Inner/Left/Semi/Anti | 不支持 | 不支持 |
Full join | 不支持 | 不支持 | |
物化视图多层级联 | 不支持 | 不支持 |
说明
用户可通过如下命令查询版本:select value from system.build_options where name = 'VERSION_SCM' limit 10;
版本 | 异步物化视图状态 |
|---|---|
cdw_2.3_stable_3 | 灰度版本 |
cdw_2.3_stable_4 | 稳定版本 |
引擎类型 | 刷新 | 透明改写 |
|---|---|---|
CnchMergeTree | 支持 | 支持 |
CnchUniqueMergeTree | 支持 | 支持 |
CnchAggregatingMergeTree | 支持 | 支持 |
Hive | 不支持 | 不支持 |
场景 | 子项 | 刷新 | 透明改写 |
|---|---|---|---|
单表 | 聚合 | 支持 | 支持 |
非聚合 | 支持 | 支持 | |
子查询 | 支持 | 支持 | |
多表 union | 不支持 | 不支持 | |
多表 Join | Inner/Left/Semi/Anti | 支持 | 支持 |
Full join | 不支持 | 不支持 | |
物化视图多层级联 | — | 支持 | 不支持 |
配置名称 | 含义 | 配置选项及说明 | 默认值 | 支持版本 |
|---|---|---|---|---|
async_mv_enable_trigger_all_mode | 视图刷新的触发模式 |
| false | cdw_2.3_stable_3 |
async_mv_excluded_trigger_tables | 指定哪些基表的更新不会触发物化视图更新 | 格式:'db.table_1, db_table_2,...' | '' | |
async_mv_refresh_execution_time | 刷新任务最大执行时间 | 秒为单位,0表示刷新时间没有限制 | 0 | cdw_2.3_stable_3 |
async_mv_partition_refresh_max_limit | 限定探测原表变化最大分区范围数量,分区字段定义需要有Date类型的分区键字段 | 参数定义了探测基表变化的范围,增加了过滤条件:toDate(now()) - async_mv_partition_refresh_max_limit <= p_date >= toDate(now()) - async_mv_partition_refresh_min_limit | 0 | cdw_2.3_stable_3 |
async_mv_partition_refresh_min_limit | 限定探测原表变化最小分区范围数量,分区字段定义需要有Date类型的分区键字段 | 参数定义了探测基表变化的范围,增加了过滤条件:toDate(now()) - async_mv_partition_refresh_max_limit <= p_date >= toDate(now()) - async_mv_partition_refresh_min_limit | 0 | cdw_2.3_stable_3 |
async_mv_enbale_query_rewrite | 是否开启视图改写 |
| true | cdw_2.3_stable_3 |
async_mv_enable_refresh | 是否开启视图刷新 |
| true | cdw_2.3_stable_3 |
async_mv_refresh_task_bsp_mode | 是否使用bsp模式(stage运行方式,可以有效减少资源使用) |
| true | cdw_2.3_stable_3 |
enable_drop_inner_table_cascade | 是否自动删除隐式表 |
| true | |
async_mv_enable_refresh_execute_serial | 执行刷新任务执行模式 |
| true | |
async_mv_max_refresh_task_num | 执行刷新任务最大并行度 | 当async_mv_enable_refresh_execute_serial = false时以并发方式执行,限定刷新任务执行的最大并发度 | 16 | |
async_mv_enable_split_full_refresh | 是否把全刷新任务拆分成按照分区粒度刷新任务 | 全刷新任务是对于所有数据进行刷新,在数据量较大的情况下查询时间较长,可以把全刷新任务拆分为按照分区粒度刷新的任务 | true | |
async_mv_refresh_work_period | 定义视图刷新执行的时段 | 格式:"schedule1;schedule2;... | timezone" schedule: "HH:MM-HH:MM/1,2,3,4,5" ,例如:12:00-13:00/1,3,5;14:00-18:00/6,7;00:00-23:59/1,2,3,4,5 | cdw_2.3_stable_3 |