请参考下例: ``` t=table(11:00:00 11:30:00 as tm) select hour(tm)*100+minuteOfHour(tm) from t ```
回答于 2021-06-12 17:24
这个被解析为表达式,请用 ["col"] 试一下: ``` aa_copy["tick_pnl"] = aa_copy["tick_return"] ```
回答于 2021-06-12 17:12
把时间值改成2021.04.26T07:00:00
回答于 2021-06-12 16:33
第2个select 改成exec,这里exec语句返回vector ``` select * from a where a.id in (exec id from b) ```
回答于 2021-06-11 16:28
先用context by与limit一起使用获取表中每个分组前n条记录或最后n条记录。 ``` select * from t context by bb limit -1 ``` 然后用atImax找出排名最大值所在的位置,然后返回bb中该位置对应的值 ``` exec atImax(aa,bb) from (select * from t context by bb limit -1) ``` 示例代码如下: ``` t=table(5 2 1...
回答于 2021-06-09 08:48
使用rowNo函数为各列生成列号,赋值给schema表中的col列,然后修改schema表,仅保留表示需要导入的字段的行。代码如下: ``` schema1=extractTextSchema(csv) update schema1 set col = rowNo(name) delete from schema1 where name in `c`d`e ```
回答于 2021-05-26 15:43