Skip to content

Commit eaf4b98

Browse files
committed
[doc](opt) Clarify 2.1 mv partition info support
1 parent b760069 commit eaf4b98

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

  • i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/table-valued-functions
  • versioned_docs/version-2.1/sql-manual/sql-functions/table-valued-functions

i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/table-valued-functions/mv_infos.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ MV_INFOS("database"="<database>")
6868
- `MvPartitionInfo.partitionType`:物化视图的分区方式。
6969
- `FOLLOW_BASE_TABLE`:物化视图分区跟随基表分区列。
7070
- `SELF_MANAGE`:物化视图自己管理分区。
71-
- `EXPR`:物化视图使用表达式定义分区。
71+
72+
:::info 版本说明
73+
74+
Doris 2.1.x 的 `MvPartitionInfo.partitionType` 支持 `FOLLOW_BASE_TABLE``SELF_MANAGE``EXPR` 分区类型从 Doris 3.0.0 开始支持。
75+
76+
:::
77+
7278
- `SyncWithBaseTables`:物化视图数据是否和基表同步。
7379
- `1``true`:已同步。
7480
- `0``false`:未完全同步。对于分区物化视图,可以用 `SHOW PARTITIONS FROM <mv_name>` 查看分区级同步状态。
@@ -110,7 +116,7 @@ SyncWithBaseTables: 1
110116
- `QuerySql` 是物化视图定义的查询 SQL。
111117
- `EnvInfo` 记录物化视图创建时的环境信息。
112118
- `MvProperties` 展示物化视图属性。本例中,分区同步由 `partition_sync_limit=100``partition_sync_time_unit=YEAR` 控制。
113-
- `MvPartitionInfo` 展示物化视图分区方式。`FOLLOW_BASE_TABLE` 表示跟随基表分区列`SELF_MANAGE` 表示物化视图自己管理分区`EXPR` 表示基于表达式定义分区
119+
- `MvPartitionInfo` 展示物化视图分区方式。在 Doris 2.1.x 中,`FOLLOW_BASE_TABLE` 表示跟随基表分区列`SELF_MANAGE` 表示物化视图自己管理分区`EXPR` 分区类型从 Doris 3.0.0 开始支持
114120
- `SyncWithBaseTables``1`,表示物化视图数据和基表数据同步。`0` 表示不完全同步。对于分区物化视图,可使用 `SHOW PARTITIONS FROM <mv_name>` 查看分区级同步状态。
115121

116122
查看该物化视图最近一次刷新 task:

versioned_docs/version-2.1/sql-manual/sql-functions/table-valued-functions/mv_infos.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ The following enum fields are commonly used when checking materialized view defi
6767
- `MvPartitionInfo.partitionType`: how the materialized view is partitioned.
6868
- `FOLLOW_BASE_TABLE`: materialized view partitions follow a base table partition column.
6969
- `SELF_MANAGE`: the materialized view manages its own partitions.
70-
- `EXPR`: materialized view partitions are defined by an expression.
70+
71+
:::info Version
72+
73+
Doris 2.1.x supports `FOLLOW_BASE_TABLE` and `SELF_MANAGE` for `MvPartitionInfo.partitionType`. The `EXPR` partition type is supported since Doris 3.0.0.
74+
75+
:::
76+
7177
- `SyncWithBaseTables`: whether materialized view data is synchronized with base tables.
7278
- `1` or `true`: synchronized.
7379
- `0` or `false`: not fully synchronized. For partitioned materialized views, use `SHOW PARTITIONS FROM <mv_name>` to check partition-level synchronization.
@@ -108,7 +114,7 @@ In this result:
108114
- `QuerySql` is the query definition of the materialized view.
109115
- `EnvInfo` records the environment information when the materialized view was created.
110116
- `MvProperties` shows the properties of the materialized view. In this example, partition synchronization is limited by `partition_sync_limit=100` and `partition_sync_time_unit=YEAR`.
111-
- `MvPartitionInfo` shows how the materialized view is partitioned. `FOLLOW_BASE_TABLE` means the materialized view follows a base table partition column. `SELF_MANAGE` means the materialized view manages its own partitions. `EXPR` means the materialized view uses an expression-based partition definition.
117+
- `MvPartitionInfo` shows how the materialized view is partitioned. In Doris 2.1.x, `FOLLOW_BASE_TABLE` means the materialized view follows a base table partition column, and `SELF_MANAGE` means the materialized view manages its own partitions. The `EXPR` partition type is supported since Doris 3.0.0.
112118
- `SyncWithBaseTables` is `1`, which means the materialized view data is synchronized with its base tables. `0` means it is not fully synchronized. For partitioned materialized views, use `SHOW PARTITIONS FROM <mv_name>` to check partition-level synchronization.
113119

114120
To view the latest refresh task of this materialized view:

0 commit comments

Comments
 (0)