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

Could not create tag index again with same name as deleted index #2641

Closed
yixinglu opened this issue Jun 30, 2021 · 1 comment
Closed

Could not create tag index again with same name as deleted index #2641

yixinglu opened this issue Jun 30, 2021 · 1 comment
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@yixinglu
Copy link
Contributor

(root@nebula) [nba]> show tag indexes;
+-------------------------+
| Names                   |
+-------------------------+
| "company_index"         |
+-------------------------+
| "player_age_name_index" |
+-------------------------+
| "team_name_index"       |
+-------------------------+
Got 3 rows (time spent 1203/1443 us)

Wed, 30 Jun 2021 14:21:35 CST

(root@nebula) [nba]> create tag index player_age_index on player(age);
[ERROR (-1005)]: Existed!

Wed, 30 Jun 2021 14:21:37 CST

(root@nebula) [nba]>

Before above steps, I dropped the player_age_index by:

> drop tag index player_age_index;
@CPWstatic CPWstatic transferred this issue from vesoft-inc/nebula-graph Aug 27, 2021
@CPWstatic CPWstatic added the type/bug Type: something is unexpected label Aug 27, 2021
@CPWstatic CPWstatic added this to the v2.6.0 milestone Aug 30, 2021
@bright-starry-sky
Copy link
Contributor

I think , the error was not caused by the same index name. the real reason is that there are duplicate columns. for example:
tag t1 (c1, c2, c3)
create index i1 (c1, c2) <----- allow
create index i2(c1 ,c2) <------ not allow, because the same columns of index is exist with i1.

I will close this issue if there is no other reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

5 participants