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

rebuild tag index with old schema version value #3274

Closed
HarrisChu opened this issue Nov 5, 2021 · 0 comments · Fixed by #3332
Closed

rebuild tag index with old schema version value #3274

HarrisChu opened this issue Nov 5, 2021 · 0 comments · Fixed by #3332
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@HarrisChu
Copy link
Contributor

refer https://discuss.nebula-graph.com.cn/t/topic/6376

(root@nebula) [nba]> lookup on player yield player.name, player.age | limit 2
+------------------+------------------+------------+
| VertexID         | player.name      | player.age |
+------------------+------------------+------------+
| "Cory Joseph"    | "Cory Joseph"    | 27         |
+------------------+------------------+------------+
| "Damian Lillard" | "Damian Lillard" | 28         |
+------------------+------------------+------------+
Got 2 rows (time spent 1312/9496 us)

Fri, 05 Nov 2021 09:57:56 CST

(root@nebula) [nba]>  ALTER TAG player ADD (new_name string);

(root@nebula) [nba]> create tag index player_new_name on player(new_name(10))
Execution succeeded (time spent 24488/33469 us)

Fri, 05 Nov 2021 09:58:59 CST
(root@nebula) [nba]> lookup on player yield player.name, player.age | limit 2
+----------+-------------+------------+
| VertexID | player.name | player.age |
+----------+-------------+------------+
+----------+-------------+------------+
Empty set (time spent 1338/11633 us)

Fri, 05 Nov 2021 09:59:11 CST

storage log

E1105 01:39:26.888957 13181 IndexKeyUtils.cpp:170] prop error by : new_name. status : Unknown prop
W1105 01:39:26.888981 13181 RebuildTagIndexTask.cpp:132] Collect index value failed
E1105 01:39:26.888958 13182 IndexKeyUtils.cpp:170] prop error by : new_name. status : Unknown prop
W1105 01:39:26.889010 13182 RebuildTagIndexTask.cpp:132] Collect index value failed

expected:
When rebuild index, if the schema version in value is not the latest, keep the same behavior with fetch
e.g.

(root@nebula) [nba]> fetch prop on * "Cory Joseph"
+---------------------------------------------------------------------------+
| vertices_                                                                 |
+---------------------------------------------------------------------------+
| ("Cory Joseph" :player{age: 27, name: "Cory Joseph", new_name: __NULL__}) |
+---------------------------------------------------------------------------+
Got 1 rows (time spent 1024/4545 us)

Fri, 05 Nov 2021 10:01:17 CST
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.

3 participants