Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO: * Document
- Loading branch information
Showing
15 changed files
with
818 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
test/command/suite/select/function/vector/vector_find/int8.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
plugin_register functions/vector | ||
[[0,0.0,0.0],true] | ||
table_create Memos TABLE_HASH_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
column_create Memos numbers COLUMN_VECTOR Int8 | ||
[[0,0.0,0.0],true] | ||
load --table Memos | ||
[ | ||
{"_key": "Positive", "numbers": [1, 2, 3, 4, 5]}, | ||
{"_key": "Even", "numbers": [2, 4, 6, 8, 10]}, | ||
{"_key": "Nothing"} | ||
] | ||
[[0,0.0,0.0],3] | ||
select Memos --output_columns 'numbers, vector_find(numbers, 4)' | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
3 | ||
], | ||
[ | ||
[ | ||
"numbers", | ||
"Int8" | ||
], | ||
[ | ||
"vector_find", | ||
null | ||
] | ||
], | ||
[ | ||
[ | ||
1, | ||
2, | ||
3, | ||
4, | ||
5 | ||
], | ||
4 | ||
], | ||
[ | ||
[ | ||
2, | ||
4, | ||
6, | ||
8, | ||
10 | ||
], | ||
4 | ||
], | ||
[ | ||
[ | ||
|
||
], | ||
null | ||
] | ||
] | ||
] | ||
] |
14 changes: 14 additions & 0 deletions
14
test/command/suite/select/function/vector/vector_find/int8.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugin_register functions/vector | ||
|
||
table_create Memos TABLE_HASH_KEY ShortText | ||
column_create Memos numbers COLUMN_VECTOR Int8 | ||
|
||
load --table Memos | ||
[ | ||
{"_key": "Positive", "numbers": [1, 2, 3, 4, 5]}, | ||
{"_key": "Even", "numbers": [2, 4, 6, 8, 10]}, | ||
{"_key": "Nothing"} | ||
] | ||
|
||
select Memos \ | ||
--output_columns 'numbers, vector_find(numbers, 4)' |
Oops, something went wrong.