Skip to content

Instantly share code, notes, and snippets.

@naoa
Created Jan 30, 2016
Embed
What would you like to do?
plugin_register functions/vector
[[0,0.0,0.0],true]
table_create Users TABLE_NO_KEY
[[0,0.0,0.0],true]
column_create Users names COLUMN_VECTOR ShortText
[[0,0.0,0.0],true]
table_create Words TABLE_PAT_KEY ShortText
[[0,0.0,0.0],true]
column_create Words users COLUMN_INDEX Users names
[[0,0.0,0.0],true]
load --table Users
[
{"names": ["Alice", "Bob"]},
{"names": ["Tom"]}
]
[[0,0.0,0.0],2]
select Users --filter 'vector_size(names) == 1' --output_columns 'names' --command_version 2
[[0,0.0,0.0],[[[0],[["names","ShortText"]]]]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment