You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by lu...@apache.org on 2024/03/20 03:08:05 UTC

(doris-website) branch master updated: Update data-type.md (#432)

This is an automated email from the ASF dual-hosted git repository.

luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new c05dd01e71cd Update data-type.md (#432)
c05dd01e71cd is described below

commit c05dd01e71cd7b6fdbc5f588cf9144b5f945a3b1
Author: Ruyue Ma <ru...@gmail.com>
AuthorDate: Wed Mar 20 11:08:00 2024 +0800

    Update data-type.md (#432)
---
 .../version-2.0/table-design/data-type.md                              | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/table-design/data-type.md b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/table-design/data-type.md
index 6b285cf1dfcd..eb7813b7553c 100644
--- a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/table-design/data-type.md
+++ b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/table-design/data-type.md
@@ -51,7 +51,8 @@ Doris 已支持的数据类型列表如下:
 | QUANTILE_STATE | /         | QUANTILE_STATE 是一种计算分位数近似值的类型,在导入时会对相同的 Key,不同 Value 进行预聚合,当 value 数量不超过 2048 时采用明细记录所有数据,当 Value 数量大于 2048 时采用 TDigest 算法,对数据进行聚合(聚类)保存聚类后的质心点。QUANTILE_STATE 不能作为 Key 列使用,建表时配合聚合类型为 QUANTILE_UNION。<p>用户不需要指定长度和默认值。长度根据数据的聚合程度系统内控制。QUANTILE_STATE 列只能通过配套的 QUANTILE_PERCENT、QUANTILE_UNION、TO_QUANTILE_STATE 等函数进行查询或使用。</p> |
 | ARRAY          | /         | 由 T 类型元素组成的数组,不能作为 Key 列使用。目前支持在 Duplicate 和 Unique 模型的表中使用。 |
 | MAP            | /         | 由 K, V 类型元素组成的 map,不能作为 Key 列使用。目前支持在 Duplicate 和 Unique 模型的表中使用。 |
+| STRUCT         | /	     | 由多个 Field 组成的结构体,也可被理解为多个列的集合。不能作为 Key 使用,目前 STRUCT 仅支持在 Duplicate 模型的表中使用。一个 Struct 中的 Field 的名字和数量固定,总是为 Nullable。|
 | JSON           | /         | 二进制 JSON 类型,采用二进制 JSON 格式存储,通过 JSON 函数访问 JSON 内部字段。默认支持 1048576 字节(1MB),可调大到 2147483643 字节(2GB)。可通过 BE 配置 jsonb_type_length_soft_limit_bytes 调整。 |
 | AGG_STATE      | /         | 聚合函数,只能配合 state/merge/union 函数组合器使用。AGG_STATE 不能作为 key 列使用,建表时需要同时声明聚合函数的签名。用户不需要指定长度和默认值。实际存储的数据大小与函数实现有关。 |
 
-您也可通过`SHOW DATA TYPES;`语句查看 Doris 支持的所有数据类型。
\ No newline at end of file
+您也可通过`SHOW DATA TYPES;`语句查看 Doris 支持的所有数据类型。


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org