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]: cannot drop fulltext index with sql 'alter table table_name drop index index_name'. #20922

Closed
1 task done
Ariznawlll opened this issue Dec 25, 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

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

创建的时候带有fulltext index name,但是通过show create table查出来的table schema中并没有相关的fulltext index的name,通过alter table table_name drop index index_name删除的时候必须指定index的name,所以无法删除

Expected Behavior

No response

Steps to Reproduce

CREATE TABLE `fulltext_test01` (
  `col1` bigint DEFAULT NULL,
  `col2` int NOT NULL,
  `col3` varchar(200) DEFAULT NULL,
  `col4` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`col2`),
 FULLTEXT f01(`col3`) WITH PARSER ngram
);

alter table table_name drop index index_name;

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 25, 2024
@Ariznawlll Ariznawlll added this to the 2.1.0 milestone Dec 25, 2024
@cpegeric cpegeric assigned Ariznawlll and unassigned cpegeric Jan 16, 2025
@Ariznawlll
Copy link
Contributor Author

main commit: e9a5458

测试步骤:

CREATE TABLE `fulltext_test01` (
`col1` bigint DEFAULT NULL,
`col2` int NOT NULL,
`col3` varchar(200) DEFAULT NULL,
`col4` varchar(200) DEFAULT NULL,
PRIMARY KEY (`col2`),
FULLTEXT f01(`col3`) WITH PARSER ngram
);
show create table fulltext_test01;
load data local infile '/Users/ariznawl/Downloads/zhwiki-20241201-pages-articles-multistream-index.txt' into table test.fulltext_test01 fields terminated by ':' ESCAPED BY '\t' lines terminated by '\n';
alter table fulltext_test01 drop index f01;
show create table fulltext_test01;
Image Image

main测试通过✅

@Ariznawlll
Copy link
Contributor Author

2.0-dev: 4477346

测试步骤:

CREATE TABLE `fulltext_test01` (
`col1` bigint DEFAULT NULL,
`col2` int NOT NULL,
`col3` varchar(200) DEFAULT NULL,
`col4` varchar(200) DEFAULT NULL,
PRIMARY KEY (`col2`),
FULLTEXT f01(`col3`) WITH PARSER ngram
);
show create table fulltext_test01;
load data local infile '/Users/ariznawl/Downloads/zhwiki-20241201-pages-articles-multistream-index.txt' into table test.fulltext_test01 fields terminated by ':' ESCAPED BY '\t' lines terminated by '\n';
alter table fulltext_test01 drop index f01;
show create table fulltext_test01;
Image Image

2.0-dev 测试通过✅

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