test/command/suite/select/function/vector/vector_join/reference.test
raw| 1 | plugin_register functions/vector |
| 2 | |
| 3 | table_create Tags TABLE_PAT_KEY ShortText |
| 4 | |
| 5 | table_create Memos TABLE_HASH_KEY ShortText |
| 6 | column_create Memos tags COLUMN_VECTOR Tags |
| 7 | |
| 8 | load --table Memos |
| 9 | [ |
| 10 | {"_key": "Groonga", "tags": ["Groonga"]}, |
| 11 | {"_key": "Rroonga", "tags": ["Groonga", "Ruby"]}, |
| 12 | {"_key": "Nothing"} |
| 13 | ] |
| 14 | |
| 15 | select Memos \ |
| 16 | --output_columns 'tags, vector_join(tags, "\n")' |