| 1 |
table_create Tags TABLE_HASH_KEY ShortText |
| 2 |
|
| 3 |
table_create UserDataJP TABLE_HASH_KEY ShortText |
| 4 |
column_create UserDataJP tags COLUMN_VECTOR Tags |
| 5 |
|
| 6 |
table_create UserDataUS TABLE_HASH_KEY ShortText |
| 7 |
column_create UserDataUS tags COLUMN_VECTOR Tags |
| 8 |
|
| 9 |
table_create Users TABLE_HASH_KEY ShortText |
| 10 |
column_create Users jp COLUMN_SCALAR UserDataJP |
| 11 |
column_create Users us COLUMN_SCALAR UserDataUS |
| 12 |
|
| 13 |
load --table UserDataJP |
| 14 |
[ |
| 15 |
{"_key": "alice", "tags": ["A", "B"]} |
| 16 |
] |
| 17 |
|
| 18 |
load --table UserDataUS |
| 19 |
[ |
| 20 |
{"_key": "bob", "tags": ["A", "C"]} |
| 21 |
] |
| 22 |
|
| 23 |
load --table Users |
| 24 |
[ |
| 25 |
{"_key": "alice", "jp": "alice"}, |
| 26 |
{"_key": "bob", "us": "bob"} |
| 27 |
] |
| 28 |
|
| 29 |
select Users \ |
| 30 |
--drilldowns[tag].keys "jp.tags || us.tags" \ |
| 31 |
--command_version 3 |