Guangxi LI
Guangxi LI

性别: 注册于 2022-11-09

向TA求助
20金币数
60 经验值
0个粉丝
主页被访问 156 次

最近动态

2022-12-09 11:10 回答问题

如果使用 TSDB 存储引擎,参数 sortColumns 表示为字符串标量或向量,用于指定表的排序列。系统默认 sortColumns 最后一列为时间列,其余列字段作为排序的索引列,其组合值称作 sortKey。不支持将 sortColumns 设置为不包含时间列,不符合当前场景。这里建议使用 OLAP 存储引擎,并且在写入数据时使用 upsert! 接口,具体操作如下: dbName = "dfs://test_1123" tbName = "test_1123" if(existsDatabase(

2022-11-09 11:22 回答问题

可以使用元编程: t = table(1..10 as col1, 1..10 as col2, 1..10 as col3, 1..10 as col4, 1..10 as col5, 1..10 as col6) colNames = t.schema().colDefs.name //假设不取col1、col2 select_cols = colNames[at(!(colNames in [`col1, `col2]))] res = sql(sqlCol(select_cols), t).eva