-
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/null pattern expression input (#4180)
* Move input rows of Traverse and AppendVertices. * Avoid skip validate pattern expression with aggregate. * Fix case. * Revert "Move input rows of Traverse and AppendVertices." This reverts commit 7fd1d38. Co-authored-by: Sophie <[email protected]>
- Loading branch information
1 parent
9c6236d
commit 607330d
Showing
2 changed files
with
19 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,18 @@ | ||
# Copyright (c) 2022 vesoft inc. All rights reserved. | ||
# | ||
# This source code is licensed under Apache 2.0 License. | ||
# #4175 | ||
Feature: Test crash when aggregate with pattern expression | ||
|
||
Background: | ||
Given a graph with space named "nba" | ||
|
||
Scenario: Crash when aggregate with pattern expression | ||
# TODO aggregate should bypass all input, like `(v)--(:team)` here | ||
When executing query: | ||
""" | ||
MATCH (v:player) WHERE id(v) == 'Tim Duncan' return v.player.name AS name, size((v)--(:team)) + count(v.player.name) * 2 AS count | ||
""" | ||
Then the result should be, in any order, with relax comparison: | ||
| name | count | | ||
| 'Tim Duncan' | NULL | |