-
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.
- Loading branch information
1 parent
4297195
commit fee249b
Showing
2 changed files
with
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright (c) 2024 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
Feature: label index bug fix | ||
|
||
Background: | ||
Given a graph with space named "nba" | ||
|
||
@testmark | ||
Scenario: attribute expression encode crash | ||
When try to execute query: | ||
""" | ||
MATCH (x:bachelor) | ||
WHERE x.bachelor.name == "Tim Duncan" | ||
or x.name == "Tim Duncan" | ||
RETURN x.bachelor.name; | ||
""" | ||
Then the result should be, in any order: | ||
| x.bachelor.name | | ||
| "Tim Duncan" | | ||
When try to execute query: | ||
""" | ||
MATCH (v:bachelor)-[e:serve]-(v2) | ||
WHERE v.bachelor.name == "Tim Duncan" or e.start_year > 2000 | ||
RETURN v.bachelor.name,e.start_year | ||
""" | ||
Then the result should be, in any order: | ||
| v.bachelor.name | e.start_year | | ||
| "Tim Duncan" | 1997 | |