cancel
Showing results for 
Search instead for 
Did you mean: 

Can .Q.dpft create segmented tables?

LamHinYan
New Contributor
/ Can I use .Q.dpft instead of functional dot apply to write these 2 tables? Thx.

quote:([]time:("p"$2016.06.01)+til 3; sym:`A`B`C; price:0.1*til 3);
quoteEnum:.Q.en[`:/tmp/hdb/head][quote];
.[`:/tmp/hdb/gamma/2016.06.01/gamma/; (); :; quoteEnum];
.[`:/tmp/hdb/delta/2016.06.02/delta/; (); :; quoteEnum];
`:/tmp/hdb/head/par.txt 0: ("/tmp/hdb/gamma"; "/tmp/hdb/delta");
/ restart kdb
\l /tmp/hdb/head
1 REPLY 1

trentkg
New Contributor
Yes. 
http://code.kx.com/wiki/DotQ/DotQDotdpft

quote:([]time:("p"$2016.06.01)+til 3; sym:`A`B`C; price:0.1*til 3)
.Q.dpft[`:/path/to/hdb/hdb;2016.06.01;`sym;`quote]