test/command/suite/select/function/vector/vector_find/mode/invalid.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": ["Great", "Groonga"]}, |
| 9 | {"_key": "Rroonga", "tags": ["Full text search", "Groonga", "Ruby"]}, |
| 10 | {"_key": "Nothing"} |
| 11 | ] |
| 12 | |
| 13 | select Memos \ |
| 14 | --output_columns 'tags, vector_find(tags, "Gr", "invalid")' |