-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
parameter tck #5079
parameter tck #5079
Conversation
e57ff95
to
236c1d0
Compare
@@ -209,3 +266,11 @@ Feature: Parameter | |||
""" | |||
Then a SyntaxError should be raised at runtime: Direct output of variable is prohibited near `$var' | |||
Then clear the used parameters | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add some test scenarios where parameter expressions and variable expressions are mixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$var=go from "Tim Duncan" over like yield like._dst as id
| yield $-.id+$p1+count(distinct abs($p1)+$-.id)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -7,16 +7,48 @@ Feature: Parameter | |||
Given a graph with space named "nba" | |||
Given parameters: {"p1":1,"p2":true,"p3":"Tim Duncan","p4":3.3,"p5":[1,true,3],"p6":{"a":3,"b":false,"c":"Tim Duncan"},"p7":{"a":{"b":{"c":"Tim Duncan","d":[1,2,3,true,"Tim Duncan"]}}},"p8":"Manu Ginobili", "p9":["Tim Duncan","Tony Parker"]} | |||
|
|||
Scenario: return parameters | |||
Scenario: [param-test-001] without define param |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add some test scenarios where parameter expressions and aggregate expressions are mixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Scenario: [param-test-002] support null | ||
When executing query: | ||
""" | ||
RETURN $p1 is not null AS v |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add some more complex expression scenarios, such as expression nesting, type checking, runtime error, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
711b6f3
to
914d027
Compare
7f94423
to
6077ac4
Compare
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Description:
update tck of parameter
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes: