dict值可以是table吗?

请教一个问题,dict值可以是table吗?我这样写:

orders=select TradeChannel,Order,SecID,Market,Side,Price,Volume,OrderType,TimeStamp,0 as DealVolume,0.0 as VWAP, 0.0 as DealValue from tt where SecID='2142.0'
historyDict = dict(STRING, ANY)
historyDict.dictUpdate!(function=append!, keys=orders.SecID, parameters=orders, initFunc=x->table(100:0,x.schema().colDefs.name, x.schema().colDefs.typeString).append!(x))

执行时报错"The input for schema function must be a table or a database."

请先 登录 后评论

1 个回答

wale

你的lamba函数的输入x是一个table或database吗?我看你的代码其实想复制x,可以用copy函数

initFunc = copy
请先 登录 后评论