Skip to content

Conversation

@PavelShilin89
Copy link
Contributor

Type of Change:

  • Bug fix

Description of the Change:

  • This PR includes a Clt-test testing fix for a problem where queries combining OPTION fuzzy=1 with FACET fail with syntax errors ([42000][1064] Invalid options in query string, make sure they are separated by commas or P01: syntax error, unexpected FACET).

Related Issue (provide the link):

@github-actions
Copy link
Contributor

clt

❌ CLT tests in test/clt-tests/buddy/
✅ OK: 10
❌ Failed: 1
⏳ Duration: 140s
👉 Check Action Results for commit ee64b02
Failed tests:

test/clt-tests/buddy/test-facet-with-option-fuzzy.rec
––– input –––
rm -f /var/log/manticore/searchd.log; stdbuf -oL searchd > /dev/null; if timeout 10 grep -qm1 '\[BUDDY\] started' <(tail -n 1000 -f /var/log/manticore/searchd.log); then echo 'Buddy started!'; else echo 'Timeout or failed!'; cat /var/log/manticore/searchd.log;fi
––– output –––
Buddy started!
––– input –––
mysql -h0 -P9306 -e "DROP TABLE IF EXISTS test; CREATE TABLE test(column1 int, column2 int, column3 text) min_infix_len = '2'; INSERT INTO test(column1, column2, column3) VALUES (123, 3333, 'text here'), (456, 22222, 'text here');"
––– output –––
––– input –––
mysql -h0 -P9306 -e "
SELECT * FROM test WHERE MATCH('text')
OPTION fuzzy=1, cutoff=1;"
––– output –––
+ +---------------------+-----------+---------+---------+
+ | id                  | column3   | column1 | column2 |
+ +---------------------+-----------+---------+---------+
+ | 5479509461749989377 | text here |     123 |    3333 |
+ +---------------------+-----------+---------+---------+
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1
FACET column1;"
––– output –––
+ ERROR 1064 (42000) at line 2: P01: syntax error, unexpected FACET near 'FACET column1 option idf='plain,tfidf_normalized';SHOW META'
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, cutoff=1
FACET column2;"
––– output –––
+ ERROR 1064 (42000) at line 2: P01: syntax error, unexpected identifier, expecting $end near 'idf='plain,tfidf_normalized';SHOW META'
––– input –––
mysql -h0 -P9306 -e "
SELECT column1, column2, column3
FROM test
WHERE MATCH('text')
OPTION fuzzy=1, cutoff=1
FACET column2;"
––– output –––
+ ERROR 1064 (42000) at line 2: P01: syntax error, unexpected identifier, expecting $end near 'idf='plain,tfidf_normalized';SHOW META'

@PavelShilin89 PavelShilin89 merged commit 900f5e4 into master Apr 1, 2025
91 checks passed
@PavelShilin89 PavelShilin89 deleted the test/facet-with-option-fuzzy branch April 1, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants