Guangxi LI
Guangxi LI

性别: 注册于 2022-11-09

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

2 个回答

0 赞同

如何将分区表的sortColumns设置为非时间列?或者说如何在分区表...

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

回答于 2022-12-09 11:10

0 赞同

列太多时,如何快速选取除了某些列的所有列

可以使用DolphinDB元编程来实现,元编程教程链接:https://gitee.com/dolphindb/Tutorials_CN/blob/master/meta_programming.md 上述场景的具体例子如下 colNames = t.schema().colDefs.name //假设不取col1、col2 select_cols = colNames[at(!(colNames in [`col1, `col2]))] res = sql(sqlCol(select_cols), t).eval()...

回答于 2022-11-09 11:22