-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 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,21 @@ | ||
# name: test/sql/fts/deliminator.test | ||
# description: Test that we do not have a DELIM_JOIN in FTS | ||
# group: [fts] | ||
|
||
require fts | ||
|
||
require no_alternative_verify | ||
|
||
statement ok | ||
CREATE TABLE documents(id VARCHAR, body VARCHAR) | ||
|
||
statement ok | ||
INSERT INTO documents VALUES ('doc1', ' QUÁCKING+QUÁCKING+QUÁCKING'), ('doc2', ' BÁRKING+BÁRKING+BÁRKING+BÁRKING'), ('doc3', ' MÉOWING+MÉOWING+MÉOWING+MÉOWING+MÉOWING+999') | ||
|
||
statement ok | ||
PRAGMA create_fts_index('documents', 'id', 'body', overwrite=1) | ||
|
||
query II | ||
EXPLAIN SELECT score, id, body FROM (SELECT *, fts_main_documents.match_bm25(id, 'quacked barked') AS score FROM documents) sq WHERE score IS NOT NULL ORDER BY score DESC | ||
---- | ||
logical_opt <!REGEX>:.*DELIM_JOIN.* |