eldenmoon commented on code in PR #4170: URL: https://github.com/apache/doris-website/pull/4170#discussion_r4079848355
########## i18n/zh-CN/docusaurus-plugin-content-docs/current/data-operate/import/complex-types/variant.md: ########## @@ -28,18 +28,29 @@ | 你的需求 | 建议阅读 | | --- | --- | | 快速完成 CSV / JSON 导入 | 继续阅读本文 | -| 选择默认模式、Sparse、DOC mode 或 Schema Template | [VARIANT 使用与配置指南](../../../sql-manual/basic-element/sql-data-types/semi-structured/variant-workload-guide) | -| 查询 VARIANT 语法、索引、限制或配置参考 | [VARIANT](../../../sql-manual/basic-element/sql-data-types/semi-structured/VARIANT) | +| 选择默认模式、Sparse、DOC mode 或 Schema Template | [VARIANT 使用与配置指南](../../../sql-manual/basic-element/sql-data-types/semi-structured/variant-workload-guide.md) | +| 查询 VARIANT 语法、索引、限制或配置参考 | [VARIANT](../../../sql-manual/basic-element/sql-data-types/semi-structured/VARIANT.md) | ## 使用限制 -- 当前仅支持 **CSV** 和 **JSON** 两种数据格式导入 `VARIANT` 列。 +- 下文示例导入的是 **CSV** 和 **JSON** 文件。导入作业会把写入 `VARIANT` 列的任何字符串字段按 JSON 解析,因此只要源列是字符串(例如 Parquet 的 `STRING` 列),其他格式也同样适用。Arrow 格式不能导入 `VARIANT` 列。 + +## 导入时值如何转换 + +- **CSV 格式:** `VARIANT` 字段的文本按 JSON 解析。`\N` 导入为 SQL `NULL`。非法 JSON 文本导入为 VARIANT 字符串。 Review Comment: CSV 格式、JSON 格式、超范围的数值 不用提及 -- 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]
