| 1 |
#@require-feature apache-arrow |
| 2 |
#$GRN_QUERY_PARALLEL_OR_N_CONDITIONS_THRESHOLD=1 |
| 3 |
#$GRN_QUERY_PARALLEL_OR_N_THREADS_LIMIT=2 |
| 4 |
|
| 5 |
table_create Data TABLE_NO_KEY |
| 6 |
column_create Data content COLUMN_SCALAR ShortText |
| 7 |
|
| 8 |
load --table Data |
| 9 |
[ |
| 10 |
{"content": "hello world"}, |
| 11 |
{"content": "It's an apple"} |
| 12 |
] |
| 13 |
|
| 14 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 15 |
--normalizers NormalizerNFKC150 \ |
| 16 |
--default_tokenizer TokenNgram |
| 17 |
column_create Terms data_content COLUMN_INDEX|WITH_POSITION Data content |
| 18 |
|
| 19 |
select Data \ |
| 20 |
--filter 'query_parallel_or(["content"], "a")' \ |
| 21 |
--match_escalation_threshold -1 |
| 22 |
|
| 23 |
select Data \ |
| 24 |
--filter 'query_parallel_or(["content"], "a")' |