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

Create edge index failed #5219

Closed
czpmango opened this issue Jan 9, 2023 · 3 comments
Closed

Create edge index failed #5219

czpmango opened this issue Jan 9, 2023 · 3 comments
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/trivial Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@czpmango
Copy link
Contributor

czpmango commented Jan 9, 2023

Describe the bug
The edge index could not be created successfully as expected.

Environments
nebula 3.3.0

How To Reproduce

(root@nebula) [test]>  
  """
      CREATE EDGE IF NOT EXISTS E2(
        id int NOT NULL DEFAULT 0 COMMENT "primary key",
        name string NOT NULL,
        createDate DATETIME, location geography(polygon),
        isVisited bool COMMENT "kHop search flag",
        nickName TIME DEFAULT time()
        )
        TTL_DURATION = 100, TTL_COL = "id", COMMENT = "TAG B";
      """
Execution succeeded (time spent 2535/2793 us)

(root@nebula) [test]>  CREATE EDGE INDEX IF NOT EXISTS idx_E_3 on E2(isVisited, id, nickName, createDate, name);
[ERROR (-1005)]: Invalid param!

(root@nebula) [test]>  CREATE EDGE INDEX IF NOT EXISTS idx_E_3 on E2(isVisited, id, nickName, createDate);
Execution succeeded (time spent 1863/2149 us)

Expected behavior
The index should be created successfully.

@czpmango czpmango added the type/bug Type: something is unexpected label Jan 9, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jan 9, 2023
@Sophie-Xie
Copy link
Contributor

Does this problem exist in v3.4?

@czpmango
Copy link
Contributor Author

czpmango commented Jan 9, 2023

(root@nebula) [test]>  CREATE EDGE INDEX IF NOT EXISTS idx_E_31 on E2(isVisited, id, nickName, createDate, name(8));
Execution succeeded (time spent 1372/1622 us)

The above test works, but we should provide more friendly error messages.

@Sophie-Xie Sophie-Xie added this to the v3.5.0 milestone Jan 9, 2023
@Sophie-Xie Sophie-Xie added severity/trivial Severity of bug and removed severity/none Severity of bug labels Jan 9, 2023
@czpmango
Copy link
Contributor Author

Closed bcz it was by design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/trivial Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

2 participants