eldenmoon commented on code in PR #4170:
URL: https://github.com/apache/doris-website/pull/4170#discussion_r4080083367
##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/basic-element/sql-data-types/semi-structured/VARIANT.md:
##########
@@ -357,61 +622,144 @@ CREATE TABLE test_var_schema (
)
PROPERTIES ("replication_num" = "1");
--- 若 enumString1 同时匹配上述两个 pattern,则采用定义顺序中第一个匹配到的类型(STRING)
+-- enumString1 同时匹配 enumString* 和 enum*,使用第一个(STRING)。
```
-如列名中包含 `*` 且希望按名称精确匹配,可使用:
+如需按字面值匹配包含 `*` 的名称,请使用 `MATCH_NAME`:
```sql
v1 VARIANT<
MATCH_NAME 'enumString*' : STRING
> NULL
```
-匹配成功的子路径默认会参与子列列式提取(Subcolumnization),并展开为独立列。若匹配子列过多导致列数暴增,建议开启
`variant_enable_typed_paths_to_sparse`(见“配置”)。
+匹配成功的路径默认参与子列列式提取(Subcolumnization)。如果匹配的路径过多、生成了过多子列,可以考虑开启
`variant_enable_typed_paths_to_sparse`(参见[列属性](#column-properties))。
-## 类型冲突与提升规则
+列创建后不能修改 Schema Template,参见 [ALTER TABLE](#alter-table)。
-当同一路径出现不兼容类型(如同一字段既出现整数又出现字符串)时,将提升为 JSONB 类型以避免信息丢失:
+## ALTER TABLE {#alter-table}
Review Comment:
这一节简化一下
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]