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

Build index after altering schema. #2857

Closed
CPWstatic opened this issue Sep 14, 2021 · 3 comments
Closed

Build index after altering schema. #2857

CPWstatic opened this issue Sep 14, 2021 · 3 comments
Assignees
Labels
type/bug Type: something is unexpected wontfix Solution: this will not be worked on recently

Comments

@CPWstatic
Copy link
Contributor

CPWstatic commented Sep 14, 2021

Describe the bug (must be provided)

Returns nothing when build index after altering schema.

Your Environments (must be provided)

  • Commit id: v2.5

How To Reproduce(must be provided)

(root@nebula) [test1]> create tag test4(col1 int,col2 int);
Execution succeeded (time spent 83118/86371 us)

Tue, 14 Sep 2021 10:47:19 CST

(root@nebula) [test1]> insert vertex test4(col1,col2) values "a":(1,2)
Execution succeeded (time spent 7692/11624 us)

Tue, 14 Sep 2021 10:47:23 CST

(root@nebula) [test1]> insert vertex test4(col1,col2) values "b":(2,3)
Execution succeeded (time spent 35314/47294 us)

Tue, 14 Sep 2021 10:47:27 CST

(root@nebula) [test1]> alter tag test4 add (col3 int)
Execution succeeded (time spent 152310/163985 us)

Tue, 14 Sep 2021 10:47:30 CST

(root@nebula) [test1]> create tag index test4_index on test4(col1,col2,col3);
Execution succeeded (time spent 118015/121077 us)

Tue, 14 Sep 2021 10:47:34 CST

(root@nebula) [test1]> rebuild tag index test4_index
[ERROR (-1009)]: SemanticError: Index test4_index not found in space test1

Tue, 14 Sep 2021 10:47:38 CST

(root@nebula) [test1]> rebuild tag index test4_index
[ERROR (-1009)]: SemanticError: Index test4_index not found in space test1

Tue, 14 Sep 2021 10:47:41 CST

(root@nebula) [test1]> rebuild tag index test4_index
+------------+
| New Job Id |
+------------+
| 33         |
+------------+
Got 1 rows (time spent 27239/30132 us)

Tue, 14 Sep 2021 10:47:48 CST

(root@nebula) [test1]> lookup on test4 where test4.col1 == 2;
Empty set (time spent 10488/13468 us)

Tue, 14 Sep 2021 10:50:39 CST

(root@nebula) [test1]> lookup on test4 where test4.col1 == 2 yield test4.col1;
Empty set (time spent 12313/14579 us)

Tue, 14 Sep 2021 11:05:37 CST

Seems like a bug which introduced in rebuild step. We could try to fix it in v2.6. @Sophie-Xie

@CPWstatic CPWstatic added the type/bug Type: something is unexpected label Sep 14, 2021
@CPWstatic CPWstatic added this to the v2.6.0 milestone Sep 14, 2021
@critical27
Copy link
Contributor

critical27 commented Sep 17, 2021

Same as schema problem in meta client. Need to fix later

@critical27
Copy link
Contributor

See #2671

@Sophie-Xie Sophie-Xie modified the milestones: v3.1.0, v4.0.0 Jan 10, 2022
@Sophie-Xie Sophie-Xie added the wontfix Solution: this will not be worked on recently label Apr 28, 2022
@Sophie-Xie Sophie-Xie removed this from the v5.0.0 milestone Apr 28, 2022
@Sophie-Xie
Copy link
Contributor

Talked it offline, all schema problem will fixed in 5.x.

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 wontfix Solution: this will not be worked on recently
Projects
None yet
Development

No branches or pull requests

3 participants