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

It is not appropriate to add names generated by anonymous vector indexes when creating tables. #56491

Closed
Tracked by #55693
zimulala opened this issue Oct 9, 2024 · 0 comments · Fixed by #56499
Closed
Tracked by #55693
Assignees
Labels
severity/moderate type/bug The issue is confirmed as a bug.

Comments

@zimulala
Copy link
Contributor

zimulala commented Oct 9, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int, b vector(3), vector index((VEC_COSINE_DISTANCE(b))) USING HNSW);
show create table t;

2. What did you expect to see? (Required)

tidb> show create table t;
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                                                                                                           |
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| t     | CREATE TABLE `t` (
  `a` int(11) DEFAULT NULL,
  `b` vector(3) DEFAULT NULL,
  VECTOR INDEX `expression_index`((VEC_COSINE_DISTANCE(`b`)))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin |
+-------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

 VECTOR INDEX `vector_index`((VEC_COSINE_DISTANCE(`b`)))

4. What is your TiDB version? (Required)

master

Release Version: v8.4.0-alpha-326-gfbcb35cd3d
Edition: Community
Git Commit Hash: fbcb35cd3d7b8ab3ebffe2af26fea7ab19365568
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant