Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for offline index construction of _key
- Loading branch information
Showing
2 changed files
with
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
table_create Users TABLE_HASH_KEY ShortText | ||
[[0,0.0,0.0],true] | ||
load --table Users | ||
[ | ||
["_key"], | ||
["Alice"], | ||
["Bob"] | ||
] | ||
[[0,0.0,0.0],2] | ||
table_create Names TABLE_PAT_KEY --key_type ShortText --default_tokenizer TokenBigramSplitSymbolAlpha | ||
[[0,0.0,0.0],true] | ||
column_create Names users_name COLUMN_INDEX|WITH_POSITION Users _key | ||
[[0,0.0,0.0],true] | ||
select Names --output_columns _key | ||
[ | ||
[ | ||
0, | ||
0.0, | ||
0.0 | ||
], | ||
[ | ||
[ | ||
[ | ||
8 | ||
], | ||
[ | ||
[ | ||
"_key", | ||
"ShortText" | ||
] | ||
], | ||
[ | ||
"Al" | ||
], | ||
[ | ||
"Bo" | ||
], | ||
[ | ||
"b" | ||
], | ||
[ | ||
"ce" | ||
], | ||
[ | ||
"e" | ||
], | ||
[ | ||
"ic" | ||
], | ||
[ | ||
"li" | ||
], | ||
[ | ||
"ob" | ||
] | ||
] | ||
] | ||
] |
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 @@ | ||
table_create Users TABLE_HASH_KEY ShortText | ||
|
||
load --table Users | ||
[ | ||
["_key"], | ||
["Alice"], | ||
["Bob"] | ||
] | ||
|
||
table_create Names TABLE_PAT_KEY --key_type ShortText \ | ||
--default_tokenizer TokenBigramSplitSymbolAlpha | ||
column_create Names users_name COLUMN_INDEX|WITH_POSITION Users _key | ||
|
||
select Names --output_columns _key |