Hi there,
I am currently working with KX Insights Enterprise and I am having a problem.
I have the following code to display and work with some tables:
foo: {[id; d1; d2; size; handle] d_f:(tablestartTSendTSfiltergroupByagg)!(table_test; date1; date2;(("="; sym; id); (“=”; side; "0"); ("="; size; size)); enlist time; enlist (avgpriceavgprice)); t_f: handle(.kxi.getData; d_f; ;()!()); t_f } h: hopen`$“:some_dir:4000”; res: foo[id; date1; date2; ;h] each 500000 1000000 10000000 res hclose h;
so, this code will call the foo function which receives an id, two dates and a handle, in order to query a table from a database. I am trying to call this method several times using an iterator, for different sizes. This code is actually working when I use a query, and I run the scratchpad, giving me the actual tables I am asking for. Instead, when I use it as a data source, I got the rank error, and I cannot figure out what it is actually happening.
Some advice?
Kind Regards!