Here is a table and I want to update the column with the following script.
init=array(DOUBLE, 0) val
t=table(1..5 as id, `a`a`b`b`c as sym, 2022.01.01 + 1..5 as date, [1.0, 2.0, 3.0, 4.0, 5.0] as val)
update t set v=accumulate(def(a, b){c=a;c.append!(b);return c}, val, init)
The accumulate
function in this script does not process columns directly because they are vectors. So is there any way to convert a column into a tuple and pass them to the accumulate
function?