exec子句何时生成向量何时生成标量?

exec子句何时生成向量何时生成标量

请先 登录 后评论

1 个回答

Xinhai Tang

例如first、sum等聚合函数输出的是标量,不是聚合计算的就是向量。

示例代码如下:

t = table(`a as id, 2010.01.01 as date)

a = exec id from t
typestr(a) //STRING VECTOR

b = exec first(id) from t
typestr(b) //STRING
请先 登录 后评论