date = table(2020.01.01..2020.01.10 as date);
ticker = table(A
B`C$SYMBOL as ticker);
t = select *, iif(ticker=="A", 1, 0) as value from cj(date, ticker);
update t set v2 = select iif(date==2020.01.08, 10, 11) from t;
以上代码运行之后,t中v2列成为了一个DICTIONARY(第一个iif运算应该是符合预期的,第二个iif并没有返回10或者11的数字,而是一个字典):
t;
date ticker value v22020.01.01 A 1 iif->11
2020.01.01 B 0 iif->11
2020.01.01 C 0 iif->11
2020.01.02 A 1 iif->11