What are the dictionaries with a single value and multiple keys stands for? What are their purposes?
I've accidentally created one, but can not do anything with it:
q)type (`a`b`c)!(`d)
99h
q)((`a`b`c)!(`d))[`a]
'par
What are the dictionaries with a single value and multiple keys stands for? What are their purposes?
I've accidentally created one, but can not do anything with it:
q)type (`a`b`c)!(`d)
99h
q)((`a`b`c)!(`d))[`a]
'par
Copyright © 2021 Jogjafile Inc.
That special form usually denotes the flip of a partitioned table, where the keys represent the column names and the value represents the table name:
This dictionary is not intended to be looked up in the usual manner and not in the way that you've attempted.
It would be completely ill-advised but it is possible to restrict columns of a partitioned table by manipulating this dictionary:
Again don't try this on any large/production tables, it's an undocumented quirk.
Splay table have a similar dictionary when flipped:
The difference being that the table name has a "/" at the end and is
hsym'd. This is how.Q.qpdetermines if a table is partitioned or splayed.