test/command/suite/select/output_columns/vector/reference/column/json.test
raw| 1 | table_create Users TABLE_HASH_KEY ShortText |
| 2 | column_create Users full_name COLUMN_SCALAR ShortText |
| 3 | |
| 4 | table_create Bookmarks TABLE_HASH_KEY ShortText |
| 5 | column_create Bookmarks users COLUMN_VECTOR Users |
| 6 | |
| 7 | load --table Users |
| 8 | [ |
| 9 | {"_key": "mori", "full_name": "Daijiro MORI"}, |
| 10 | {"_key": "s-yata", "full_name": "Susumu Yata"} |
| 11 | ] |
| 12 | |
| 13 | load --table Bookmarks |
| 14 | [ |
| 15 | {"_key": "http://groonga.org/", "users": ["mori", "s-yata"]} |
| 16 | ] |
| 17 | |
| 18 | select Bookmarks --output_columns _key,users.full_name |