【发布时间】:2019-10-23 10:50:26
【问题描述】:
我遇到了以下脚本的问题:
id = id$symbol
其中 id 是一个字符串列。我收到以下错误消息:
Please specify correct data type e.g. a$int (convert variable 'a' to integer type)
这很奇怪,因为我之前多次运行过这条线并且它通过了,而且我最近没有更新 DolphinDB 数据库。有谁知道这里发生了什么?
【问题讨论】:
我遇到了以下脚本的问题:
id = id$symbol
其中 id 是一个字符串列。我收到以下错误消息:
Please specify correct data type e.g. a$int (convert variable 'a' to integer type)
这很奇怪,因为我之前多次运行过这条线并且它通过了,而且我最近没有更新 DolphinDB 数据库。有谁知道这里发生了什么?
【问题讨论】:
我认为您可能在此脚本之前的某处定义了变量“符号”。
我可以使用以下脚本复制您的问题:
>id=`AA`BB`CC
>symbol=0;
>id$symbol;
Please specify correct data type e.g. a$int (convert variable 'a' to integer type)
因此,只需检查您的代码并避免使用指示数据类型的词语作为变量名。
【讨论】: