类型函数

类型函数

名称 说明
TYPE STRING 的形式返回该值的类型。

TYPE

语法

type(input: ANY) -> STRING

说明:

返回 input 类型的字符串表示法。

如果给定的是缺失值,则返回 NULL

示例

input type(input)
NULL "null"
true "boolean"
1 "int32"
-3L "int64"
3.14 "float64"
2024-01-01T00:00:00Z UTC "timestamp"
"foo" "string"
b"foo" "bytes"
[1, 2] "array"
{"a": 1} "map"
path("c/d") "reference"
vector([1.0, 2.0]) "vector"
ABSENT NULL