Hi Vadim,
There was a discussion about this (or at least a similar issue) on the k4 listbox a few months back. The solution
is to just drop in the full path of the segment into your query. You will need to build a dictionary
that can map your query inputs to the correct segments.
e.g.
Suppose that you had some trades segmented by symbol range (A-M and N-Z) and then partitioned by date.
Instead of running a standard query like:
select from trades where date=2015.01.07, sym=`AAPLyou could run something along the lines of:
select from `$":/AtoM/2015.01.07/trades" where sym=`AAPLThe lookup of the segment could then be wrapped up into a function so that you could write something like:
select from findsegment[2015.01.07;`AAPL;`trades] where sym=`AAPL
Credit to Arthur Whitney and Pavel Hejbal on the k4 listbox for the solution!
http://www.listbox.com/member/archive/1080/2014/10/sort/time_rev/page/5/entry/17:136/Thanks
--
Mark Rooney
Financial Software Developer
AQUAQ Analytics