Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the pruning of Expression::Kind::kVarProperty in agg. #4990

Merged
merged 3 commits into from
Dec 6, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update tck.
xtcyclist committed Dec 6, 2022
commit 6765be3f18619854c0bd95ddeaa9dc63e794536e
56 changes: 56 additions & 0 deletions tests/tck/features/optimizer/PrunePropertiesRule.feature
Original file line number Diff line number Diff line change
@@ -888,3 +888,59 @@ Feature: Prune Properties rule
Then the result should be, in any order:
| count(a) |
| 5 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return sum(a)
"""
Then the result should be, in any order:
| sum(a) |
| 10025 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return max(a)
"""
Then the result should be, in any order:
| max(a) |
| 2015 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return min(a)
"""
Then the result should be, in any order:
| min(a) |
| 1997 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return avg(a)
"""
Then the result should be, in any order:
| avg(a) |
| 2005.0 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return std(a)
"""
Then the result should be, in any order:
| std(a) |
| 6.542170893518461 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return std(a)
"""
Then the result should be, in any order:
| std(a) |
| 6.542170893518461 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return bit_or(a)
"""
Then the result should be, in any order:
| bit_or(a) |
| 2015 |
When executing query:
"""
match (v0:player)-[e0]->(v1) where id(v0) == "Tim Duncan" unwind e0.start_year as a return bit_and(a)
"""
Then the result should be, in any order:
| bit_and(a) |
| 1984 |