2022.07.04 08:34 AM
The doc on asc says
> table, returns it sorted by the first non-key column and with the partitioned attribute set on it
But when there is only one non-keyed column, it's actually the sorted attribute that is set.
q)meta asc ([c1:`a`b] c2:2 1)
c | t f a
--| -----
c1| s
c2| j s
q)meta asc ([c1:`a`b] c2:2 1; c3:01b)
c | t f a
--| -----
c1| s
c2| j p
c3| b
Perhaps an incomplete doc? Wonder if there is other edge case.
2022.07.04 09:29 PM - edited 2022.07.04 09:50 PM
Hi darrenwsun,
Yes, this is expected behavior and we will update the documentation to reflect.
Thanks for raising, I've created a GitHub issue for tracking.
Kind regards,
David
2022.07.04 09:29 PM - edited 2022.07.04 09:50 PM
Hi darrenwsun,
Yes, this is expected behavior and we will update the documentation to reflect.
Thanks for raising, I've created a GitHub issue for tracking.
Kind regards,
David
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.