Skip to content

Instantly share code, notes, and snippets.

@naoa
Created January 30, 2016 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naoa/18989a4666284d43ef33 to your computer and use it in GitHub Desktop.
Save naoa/18989a4666284d43ef33 to your computer and use it in GitHub Desktop.
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