[typo](docs)Modified description of JSON /String size (#21694)
This commit is contained in:
@ -34,7 +34,7 @@ NOTICE: In version 1.2.x the data type name is JSONB. It's renamed to JSON to be
|
||||
|
||||
### description
|
||||
JSON (Binary) datatype.
|
||||
Use binary JSON format for storage and json function to extract field.The maximum (default) support is 1048576 bytes (1MB), and the JSONB type is also limited by the be configuration `jsonb_type_length_soft_limit_bytes`
|
||||
Use binary JSON format for storage and json function to extract field. Default support is 1048576 bytes (1M), adjustable up to 2147483643 bytes (2G),and the JSONB type is also limited by the be configuration `jsonb_type_length_soft_limit_bytes`.
|
||||
|
||||
### note
|
||||
There are some advantanges for JSON over plain JSON STRING.
|
||||
|
||||
@ -27,7 +27,7 @@ under the License.
|
||||
## STRING
|
||||
### Description
|
||||
STRING (M)
|
||||
A variable length string, max legnth(default) is 1048576(1MB). The length of the String type is also limited by the configuration `string_type_length_soft_limit_bytes`(a soft limit of string type length) of be, the String type can only be used in the value column, not in the key column and the partition and bucket columns
|
||||
A variable length string. Default support is 1048576 bytes (1M), adjustable up to 2147483643 bytes (2G),and the length of the String type is also limited by the configuration string_type_length_soft_limit_bytes(a soft limit of string type length) of be. the String type can only be used in the value column, not in the key column and the partition and bucket columns
|
||||
|
||||
Note: Variable length strings are stored in UTF-8 encoding, so usually English characters occupies 1 byte, and Chinese characters occupies 3 bytes.
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ under the License.
|
||||
|
||||
### description
|
||||
JSON类型
|
||||
二进制JSON类型,采用二进制JSON格式存储,通过json函数访问JSON内部字段。最大(默认)支持1048576 字节(1MB),JSONB类型还受be配置`jsonb_type_length_soft_limit_bytes`限制
|
||||
二进制JSON类型,采用二进制JSON格式存储,通过json函数访问JSON内部字段。默认支持1048576 字节(1M),可调大到 2147483643 字节(2G),可通过be配置`jsonb_type_length_soft_limit_bytes`调整
|
||||
|
||||
### note
|
||||
与普通STRING类型存储的JSON字符串相比,JSON类型有两点优势
|
||||
|
||||
@ -27,7 +27,8 @@ under the License.
|
||||
## STRING
|
||||
### description
|
||||
STRING
|
||||
变长字符串,最大(默认)支持1048576 字节(1MB)。String类型的长度还受 be 配置 `string_type_length_soft_limit_bytes`(字符串类型长度的软限制), String类型只能用在value 列,不能用在 key 列和分区 分桶列
|
||||
变长字符串,默认支持1048576 字节(1MB),可调大到 2147483643 字节(2G),可通过be配置`string_type_length_soft_limit_bytes`调整。 String类型只能用在value 列,不能用在 key 列和分区 分桶列
|
||||
String类型只能用在value 列,不能用在key列和分区分桶列。
|
||||
|
||||
注意:变长字符串是以UTF-8编码存储的,因此通常英文字符占1个字节,中文字符占3个字节。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user