From 27a8fb3aac208bbfa53f33d8c5a69bd0c0620789 Mon Sep 17 00:00:00 2001 From: xtcyclist <7731943+xtcyclist@users.noreply.github.com> Date: Mon, 5 Dec 2022 23:10:01 +0800 Subject: [PATCH] Add tck. --- .../tck/features/optimizer/PrunePropertiesRule.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/tck/features/optimizer/PrunePropertiesRule.feature b/tests/tck/features/optimizer/PrunePropertiesRule.feature index 4fdc4c245c5..4b11f3e0c9a 100644 --- a/tests/tck/features/optimizer/PrunePropertiesRule.feature +++ b/tests/tck/features/optimizer/PrunePropertiesRule.feature @@ -878,3 +878,13 @@ Feature: Prune Properties rule | v.player.name | t.errortag.name | properties(v) | t | | "Tim Duncan" | __NULL__ | {age: 42, name: "Tim Duncan", speciality: "psychology"} | ("Tony Parker" :player{age: 36, name: "Tony Parker"}) | | "Tim Duncan" | __NULL__ | {age: 42, name: "Tim Duncan", speciality: "psychology"} | ("Manu Ginobili" :player{age: 41, name: "Manu Ginobili"}) | + + Scenario: no pruning on agg after unwind + Given a graph with space named "nba" + When executing query: + """ + match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return count(a) + """ + Then the result should be, in any order: + | count(a) | + | 5 |