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

Index delete problem #3375

Closed
QingZ11 opened this issue Nov 29, 2021 · 1 comment · Fixed by #3413
Closed

Index delete problem #3375

QingZ11 opened this issue Nov 29, 2021 · 1 comment · Fixed by #3413
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@QingZ11
Copy link
Contributor

QingZ11 commented Nov 29, 2021

Describe the bug (required)

Statement drop tag index deletes the edge index unexpectedly, and vice versa for the deletion of the tag index.

Your Environments (required)
Version: v2.6 and previous versions

How To Reproduce(required)

(root@nebula) [nba]> create tag A(a int)
Execution succeeded (time spent 2126/2508 us)

(root@nebula) [nba]> create edge E(a int)
Execution succeeded (time spent 2039/2379 us)

(root@nebula) [nba]> create tag index a_index on A(a)
Execution succeeded (time spent 1959/2310 us)

(root@nebula) [nba]> create edge index e_index on E(a)
Execution succeeded (time spent 2097/2452 us)

(root@nebula) [nba]> drop tag index e_index
Execution succeeded (time spent 1572/1963 us)

(root@nebula) [nba]> drop edge index a_index
Execution succeeded (time spent 1702/2114 us)

Expected behavior

An error should be reported when trying to delete an edge index with statement drop tag index e_index, and vice versa.

Additional context
Maybe we should reconsider similar grammatical design to avoid ambiguity and unfriendliness to users.

@QingZ11 QingZ11 added the type/bug Type: something is unexpected label Nov 29, 2021
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Nov 29, 2021
@CPWstatic CPWstatic assigned czpmango and unassigned CPWstatic Nov 29, 2021
@sworduo sworduo mentioned this issue Dec 6, 2021
6 tasks
@czpmango
Copy link
Contributor

czpmango commented Dec 7, 2021

Additional context
Maybe we should reconsider similar grammatical design to avoid ambiguity and unfriendliness to users.

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

Successfully merging a pull request may close this issue.

4 participants