-
Notifications
You must be signed in to change notification settings - Fork 348
[doc](array)refresh array functions doc #2671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...ontent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-apply.md
Outdated
Show resolved
Hide resolved
...ontent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-apply.md
Show resolved
Hide resolved
...ontent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-apply.md
Show resolved
Hide resolved
...ontent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-apply.md
Show resolved
Hide resolved
...ontent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-apply.md
Outdated
Show resolved
Hide resolved
...tent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-compact.md
Outdated
Show resolved
Hide resolved
...ntent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-concat.md
Outdated
Show resolved
Hide resolved
...ntent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-concat.md
Outdated
Show resolved
Hide resolved
...ent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-contains.md
Outdated
Show resolved
Hide resolved
...ontent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-count.md
Outdated
Show resolved
Hide resolved
...ontent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-count.md
Show resolved
Hide resolved
...ent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-contains.md
Show resolved
Hide resolved
...ent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-contains.md
Show resolved
Hide resolved
...ent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-contains.md
Show resolved
Hide resolved
...t-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-difference.md
Outdated
Show resolved
Hide resolved
...t-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-difference.md
Show resolved
Hide resolved
...tent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-cum-sum.md
Outdated
Show resolved
Hide resolved
...t-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-difference.md
Outdated
Show resolved
Hide resolved
- 整数类型(TINYINT、SMALLINT、INT、BIGINT、LARGEINT) | ||
- 浮点类型(FLOAT、DOUBLE) | ||
- 十进制类型(DECIMALV2、DECIMALV3,包括 DECIMAL32、DECIMAL64、DECIMAL128I、DECIMAL256) | ||
- 如果数组包含其他类型(如字符串、日期等),会尝试将元素转换为 DOUBLE 类型。转换失败的元素结果为 null,不参与累积和。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里,日期类型我们为什么要支持cast 成double啊?
...t-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-difference.md
Outdated
Show resolved
Hide resolved
- NULL:如果输入数组为 NULL | ||
|
||
使用说明: | ||
- 如果数组包含其他类型(如字符串、日期等),会尝试将元素转换为 DOUBLE 类型。转换失败的元素结果为 null,不参与差值计算。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的null 为什么没有被按照0来计算?
另外,日期为什么要cast?
...ntent-docs/current/sql-manual/sql-functions/scalar-functions/array-functions/array-filter.md
Show resolved
Hide resolved
- 日期时间类型:DATE、DATETIME、DATEV2、DATETIMEV2 | ||
- 布尔类型:BOOLEAN | ||
- IP 类型:IPV4、IPV6 | ||
- 复杂数据类型:ARRAY、MAP、STRUCT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对于复杂类型,比如map,我们是怎么判断两个map 相等的?
- 字符串类型:CHAR、VARCHAR、STRING | ||
- 日期时间类型:DATE、DATETIME、DATEV2、DATETIMEV2 | ||
- 布尔类型:BOOLEAN | ||
- IP 类型:IPV4、IPV6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们不支持json 类型吗?
Versions
Languages
Docs Checklist