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