From 87237e2006e51b9316c1c5c80ee766109dd2a581 Mon Sep 17 00:00:00 2001 From: Laurens Kuiper Date: Wed, 13 Nov 2024 14:55:46 +0100 Subject: [PATCH] add last fts test --- test/sql/fts/deliminator.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/sql/fts/deliminator.test diff --git a/test/sql/fts/deliminator.test b/test/sql/fts/deliminator.test new file mode 100644 index 0000000..90c55e4 --- /dev/null +++ b/test/sql/fts/deliminator.test @@ -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 :.*DELIM_JOIN.*