Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Fulltext index query panic 'internal error: double operator'. #20908

Closed
1 task done
Ariznawlll opened this issue Dec 24, 2024 · 2 comments
Closed
1 task done
Assignees
Labels
kind/bug Something isn't working phase/testing severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Milestone

Comments

@Ariznawlll
Copy link
Contributor

Ariznawlll commented Dec 24, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

2b6ab7e

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

场景一:
image

场景二:
image

Expected Behavior

execute successfully

Steps to Reproduce

场景一:
set experimental_fulltext_index=1;
CREATE TABLE `fulltext_test` (
  `col1` bigint DEFAULT NULL,
  `col2` int NOT NULL,
  `col3` varchar(200) DEFAULT NULL,
  `col4` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`col2`),
 FULLTEXT(`col3`) WITH PARSER ngram
);
load data local infile '/Users/ariznawl/Downloads/zhwiki-20241201-pages-articles-multistream-index.txt' into table test.fulltext_test fields terminated by ':' ESCAPED BY '\t' lines terminated by '\n';

select * from fulltext_test where match(col3) against('+Windows +(<"Photo" >defender)' in boolean mode);

场景二:
CREATE TABLE `fulltext_test` (
  `col1` bigint DEFAULT NULL,
  `col2` int NOT NULL,
  `col3` varchar(200) DEFAULT NULL,
  `col4` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`col2`),
 FULLTEXT(`col3`,`col4`) WITH PARSER ngram
);
load data local infile '/Users/ariznawl/Downloads/zhwiki-20241201-pages-articles-multistream-index.txt' into table test.fulltext_test fields terminated by ':' ESCAPED BY '\t' lines terminated by '\n';
select * from fulltext_test where match(col3,col4) against ('+CC_BY +(<-1.0 >-SA-1.0)' in boolean mode);


test data file is huge, please contact me privately.

Additional information

No response

@Ariznawlll Ariznawlll added kind/bug Something isn't working needs-triage severity/s0 Extreme impact: Cause the application to break down and seriously affect the use labels Dec 24, 2024
@Ariznawlll Ariznawlll added this to the 2.1.0 milestone Dec 24, 2024
@Ariznawlll Ariznawlll changed the title [Bug]: Fulltext index query panic. [Bug]: Fulltext index query panic 'internal error: double operator'. Dec 26, 2024
@cpegeric
Copy link
Contributor

cpegeric commented Jan 2, 2025

you cannot have Phrase search "" together with other operations. Invalid search string.

you cannot have double operator -< .... this is not permitted.

@cpegeric cpegeric assigned Ariznawlll and unassigned cpegeric Jan 2, 2025
@cpegeric cpegeric mentioned this issue Jan 3, 2025
7 tasks
@Ariznawlll
Copy link
Contributor Author

mysql> select git_version();
+---------------+
| git_version() |
+---------------+
| b43417f |
+---------------+
1 row in set (0.01 sec)

image

测试通过✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working phase/testing severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Projects
None yet
Development

No branches or pull requests

3 participants