sql((sqlCol(`date),sqlCol(code,ratios, `ret)),table ).eval()
sqlCol 第一个参数为列名字符串,因此上述语句计算的是 table 中列名为 `000905 这列的 ratios。
sql((sqlCol(`date),sqlColAlias(<ratios(code)>,`ret)),table).eval()
sqlColAlias 第一个参数以 metaCode 传入,根据表达式计算的是 table 中列名为 `code 这列的 ratios, 如果您的 code 列是 SYMBOL 或 STRING 类型,则不能进行数值化运算的,因此报错 X can't be string or symbol type.