-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lookup in crash when the property has no corresponding filter (#3986
) * Fix lookup in crash * Fix typos * Fix tck Co-authored-by: Sophie <[email protected]>
- Loading branch information
1 parent
2d7c1fb
commit 49db1ba
Showing
5 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright (c) 2022 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
Feature: Lookup_In | ||
|
||
# Lookup ... WHERE xxx IN xxx causes service crash | ||
# Fix https://github.com/vesoft-inc/nebula/issues/3983 | ||
Scenario: lookup in where prop has no index | ||
Given an empty graph | ||
And load "nba" csv data to a new space | ||
When executing query: | ||
""" | ||
DROP TAG INDEX IF EXISTS player_age_index | ||
""" | ||
Then the execution should be successful | ||
When submit a job: | ||
""" | ||
REBUILD TAG INDEX | ||
""" | ||
Then wait the job to finish | ||
When executing query: | ||
""" | ||
Show TAG INDEXES; | ||
""" | ||
Then the result should be, in any order: | ||
| Index Name | By Tag | Columns | | ||
| "bachelor_index" | "bachelor" | [] | | ||
| "player_name_index" | "player" | ["name"] | | ||
| "team_name_index" | "team" | ["name"] | | ||
# player.age has no index | ||
When executing query: | ||
""" | ||
LOOKUP ON player WHERE player.age IN [40, 20] AND player.name > "" YIELD id(vertex) as id, player.age | ||
""" | ||
Then the result should be, in any order: | ||
| id | player.age | | ||
| "Dirk Nowitzki" | 40 | | ||
| "Luka Doncic" | 20 | | ||
| "Kobe Bryant" | 40 | | ||
Then drop the used space |