I’m currently trying to debug some issues with an IPC library.
Looking at the Serialization Examples in the documentation, there is a section on Sorted Dictionary.
Serialization examples | Knowledge Base | kdb+ and q documentation - kdb+ and q documentation
I’m a bit concerned by what I see in here for a few reasons:
-
A Sorted Dictionary has type “127”, and not “99” which is Dictionary. In addition, the vector of values for the keys has the attribute “01”, which means sorted. This information appears to be redundant. This troubles me, because I now don’t understand the exact meaning of the sorted attribute. Is this information really just redundant? Do all vectors returned via KDB IPC which happen to be in sorted order have the sorted attribute set? (There are at least two possible interpretations of what that sorted attribute really means.)
-
The Sorted Dictionary type “127” is not listed in the data types documentation. This also worries me because I wonder what other things might be missing?
-
Why is a Sorted Table different? A Sorted Table has the same type id as a regular Table, which is “68”.
Data types | Basics | kdb+ and q documentation - kdb+ and q documentation