2019.11.26 02:13 AM
2019.11.26 03:18 AM
Hi,--I'm currently deep diving in the code of kdb-tick and I have difficulties to understand one specific part of the code. Actually, is the last part I need to understand to clearly read kdb-tick.Here is the code :add:{$[(count w x)>i:w[x;;0]?.z.w;.[`.u.w;(x;i;1);union;y];w[x],:enlist(.z.w;y)];(x;$[99=type v:value x;sel[v]y;@[0#v;`sym;`g#] / here is my problem])}It will be very kind if anyone can give me a detailed explanation. Otherwise, resources will be fine.I already understood it was about @ verb but I don
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/personal-kdbplus/de228c8e-f5ab-4dc4-bb97-c29682a02a0b%40googlegrou....
2019.11.26 03:50 AM
That's a pretty recent change, the commit is detailed here by Charlie: https://github.com/KxSystems/kdb-tick/commit/ afc67eda6dfbb2ca89322f702db23e e68c2c7be3#diff- 2a42c560e... Originally .u.add would return the empty schema (0#v) but in order to preserve grouped attribute on sym column it now uses index/apply to ensure the attribute is maintainedTerry
2019.11.26 03:51 AM
This is functional amend.@[t;`sym;`g#] will apply the `g attribute on t's sym column. t can be a table (or dict) or the name of the table (or dict) as a sym or even file path sym to a (eg. splayed table) folder. For sym t the data is modified inplace and t is returned, otherwise the modified data is returned.In this particular case this will return the table schema with sym having the `g attribute.Regards,AndrásGuillaume Robin <robingui...@gmail.com> ezt írta (időpont: 2019. nov. 26., K 10:59):Hi,--I'm currently deep diving in the code of kdb-tick and I have difficulties to understand one specific part of the code. Actually, is the last part I need to understand to clearly read kdb-tick.Here is the code :add:{$[(count w x)>i:w[x;;0]?.z.w;.[`.u.w;(x;i;1);union;y];w[x],:enlist(.z.w;y)];(x;$[99=type v:value x;sel[v]y;@[0#v;`sym;`g#] / here is my problem])}It will be very kind if anyone can give me a detailed explanation. Otherwise, resources will be fine.I already understood it was about @ verb but I don
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/personal-kdbplus/ de228c8e-f5ab-4dc4-bb97- c29682a02a0b%40googlegrou... .
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.