getStreamTableTimestamp
首发版本:3.00.6
语法
getStreamTableTimestamp(streamTable)
详情
获取流数据表中通过 setStreamTableTimestamp 函数设置的时间戳列。
参数
streamTable 一个流数据表。
返回值
STRING 类型标量,表示时间戳列名。
例子
share streamTable(10000:0,`symbol`timestamp`price, [SYMBOL,TIMESTAMP,DOUBLE]) as trades
// 指定 timestamp 列为时间戳列
setStreamTableTimestamp(trades, `timestamp)
// 获取时间戳列
getStreamTableTimestamp(trades)
// 输出: 'timestamp'
