alex
alex

性别: 注册于 2022-01-12

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

26 个回答

4 赞同

files 命令仅能列出当前目录下的文件,且 filename 不是完整路径...

可以写个自定义函数: def findR(path, pattern=NULL){ t = files(path) if (isValid(pattern)){ t = files(path, pattern) } res = select * from t where !isDir update res set res.filename = path +"/" + res.filename for (f in select * from files(path) where !!isDir){ try { subRes = findR(path...

回答于 2022-10-27 13:33

0 赞同

DolphinDB 脚本闭包只能识别变量,不能识别函数调用?

是的 Python 和 DolphinDB 的函数名称查找过程不同, 闭包的实现也不同 不过可以通过两种办法绕过 1. 部分应用 def f(argf){    g = def(arg){return arg()}{argf}} 2. 采用 call 函数间接调用 def f(argf){     g = def(): call(argf)}  另外可以看一下使用 DolphinDB 脚本实现的 z 组合子: (参考了 https://lp...

回答于 2022-10-26 10:41

0 赞同

使用 rlwrap 配合 dolphindb 命令行时,报错

试一下 stty 重置 cols  和 rows stty rows 50 && stty cols 150

回答于 2022-10-10 13:39

0 赞同

DolphinDB的ODBC连接mssql报错”Unable to connect to data sourc...

如果连接 MS SQL Server 还要另外装驱动 比如对客户端操作系统是centos 7  要连接服务端 2017 版本的 SQL Server ,需要  wget https://packages.microsoft.com/rhel/7/prod/msodbcsql17-17.3.1.1-1.x86_64.rpm rpm -ivh msodbcsql17-17.3.1.1-1.x86_64.rpm ll /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.3.so...

回答于 2022-05-20 21:55

0 赞同

parser中流表的计算metrics里逻辑可以封装到class里吗

您说的 parser 是指这个吗 https://www.dolphindb.cn/cn/help/FunctionsandCommands/FunctionReferences/s/streamEngineParser.html?highlight=streamengineparser

回答于 2022-05-07 09:58

0 赞同

分布式表写入成功,却查询不到数据\返回结果为空。

可以给出更详细信息吗

回答于 2022-05-07 09:57

0 赞同

using array vector with dolphindb gui creates glitch and sho...

ok, i'll file an issue, thanks very much

回答于 2022-03-29 15:41

0 赞同

When will arrayvector be supported in ReactiveStateEngine ?

new version is to be released tomorrow, stay tuned

回答于 2022-03-28 18:20

0 赞同

maxPositiveStreak 这个函数有没有滑动窗口的版本?

可以使用 moving 函数 v =  10 -1 0 0 1 2 3 1 0 0 -1 -1 n=4 moving(maxPositiveStreak,iif(v>0, 1, 0), n)

回答于 2022-03-14 10:30

0 赞同

让我们谈谈streamEngineParser

感谢反馈,会尽快完善文档

回答于 2022-03-14 10:25