debug.null() 函数
debug.null() 返回给定类型的空值。
函数类型签名
(?type: string) => A where A: Basic
有关更多信息,请参见 Function type signatures。
参数
类型
空类型。
支持的类型:
- 字符串
- 字节
- 整数
- uint
- 浮点数
- bool
- 时间
- 持续时间
- regexp
示例
在临时表流中包含空值
import "array"
import "internal/debug"
array.from(rows: [{a: 1, b: 2, c: 3}, {a: debug.null(type: "int"), b: 5, c: 6}])