From 7350fef8d43a44091d8489c90e3f4638b44ab49f Mon Sep 17 00:00:00 2001 From: nebula-bots <88429921+nebula-bots@users.noreply.github.com> Date: Mon, 15 Aug 2022 13:45:41 +0800 Subject: [PATCH] Add case for bugfix https://github.com/vesoft-inc/nebula/issues/4417 (#1166) * Add case for bugfix * Add explain Co-authored-by: Yichen Wang <18348405+Aiee@users.noreply.github.com> --- tests/tck/features/match/SeekById.feature | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/tests/tck/features/match/SeekById.feature b/tests/tck/features/match/SeekById.feature index 14a29d24358..618c8bbd434 100644 --- a/tests/tck/features/match/SeekById.feature +++ b/tests/tck/features/match/SeekById.feature @@ -399,3 +399,40 @@ Feature: Match seek by id | 16 | Dedup | 7 | | | 7 | PassThrough | 0 | | | 0 | Start | | | + + # issue: https://github.com/vesoft-inc/nebula/issues/4417 + Scenario: vid within split function + When profiling query: + """ + MATCH (v:player)--(v2) + WHERE id(v2) IN split("Tim Duncan,player102", ",") and v2.player.age>34 + RETURN v2; + """ + Then the result should be, in any order: + | v2 | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + | ("Tim Duncan" :bachelor{name: "Tim Duncan", speciality: "psychology"} :player{age: 42, name: "Tim Duncan"}) | + And the execution plan should be: + | id | name | dependencies | operator info | + | 11 | Project | 8 | | + | 8 | Filter | 4 | | + | 4 | AppendVertices | 10 | | + | 10 | Traverse | 1 | | + | 1 | IndexScan | 2 | | + | 2 | Start | | |