Skip to content

Commit

Permalink
Don't accept constants for 'has value' operator, this is not helpful #64
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgmer committed Jun 25, 2020
1 parent bce58ef commit 0a2f18b
Show file tree
Hide file tree
Showing 24 changed files with 460 additions and 181 deletions.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19575,7 +19575,7 @@ <h1>JSONPath Comparison</h1>
<a href="results/filter_expression_with_equals_boolean_expression_value.html#Golang_github.com-spyzhov-ajson">➘</a>
</td>
<td>
<a href="results/filter_expression_with_equals_boolean_expression_value.html#Golang_github.com-vmware-labs-yaml-jsonpath"></a>
<a href="results/filter_expression_with_equals_boolean_expression_value.html#Golang_github.com-vmware-labs-yaml-jsonpath"></a>
</td>
<td>
<a href="results/filter_expression_with_equals_boolean_expression_value.html#Haskell_jsonpath">➚</a>
Expand Down Expand Up @@ -24128,7 +24128,7 @@ <h1>JSONPath Comparison</h1>
<a href="results/filter_expression_with_value_null.html#dotNET_Manatee.Json">➘</a>
</td>
<td class="proposal">
<a href="results/filter_expression_with_value_null.html#Proposal_A"></a>
<a href="results/filter_expression_with_value_null.html#Proposal_A"></a>
</td>
</tr>
<tr id="filter_expression_with_value_true" class="no_consensus">
Expand Down Expand Up @@ -24249,7 +24249,7 @@ <h1>JSONPath Comparison</h1>
<a href="results/filter_expression_with_value_true.html#dotNET_Manatee.Json">➘</a>
</td>
<td class="proposal">
<a href="results/filter_expression_with_value_true.html#Proposal_A"></a>
<a href="results/filter_expression_with_value_true.html#Proposal_A"></a>
</td>
</tr>
<tr id="filter_expression_without_parens" class="consensus">
Expand Down
15 changes: 12 additions & 3 deletions docs/results/filter_expression_with_addition.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h4 id="Proposal_A">
| x 1:10-1:10 ScalarOperator
| | $[?(@.key+50==100)]
| | ^
| o 1:5-1:10 FilterValue
| o 1:5-1:10 DocumentValue
| | $[?(@.key+50==100)]
| | ^^^^^
| o 1:5-1:10 UnaryFilterExpression
Expand All @@ -350,6 +350,9 @@ <h4 id="Proposal_A">
| | x 1:10-1:10 ScalarOperator
| | | $[?(@.key+50==100)]
| | | ^
| | o 1:5-1:10 DocumentValue
| | | $[?(@.key+50==100)]
| | | ^^^^^
| | o 1:5-1:10 FilterValue
| | | $[?(@.key+50==100)]
| | | ^^^^^
Expand All @@ -369,7 +372,7 @@ <h4 id="Proposal_A">
| | x 1:10-1:10 ScalarOperator
| | | $[?(@.key+50==100)]
| | | ^
| | o 1:5-1:10 FilterValue
| | o 1:5-1:10 DocumentValue
| | | $[?(@.key+50==100)]
| | | ^^^^^
| | o 1:5-1:10 UnaryFilterExpression
Expand All @@ -378,6 +381,9 @@ <h4 id="Proposal_A">
| | | x 1:10-1:10 ScalarOperator
| | | | $[?(@.key+50==100)]
| | | | ^
| | | o 1:5-1:10 DocumentValue
| | | | $[?(@.key+50==100)]
| | | | ^^^^^
| | | o 1:5-1:10 FilterValue
| | | | $[?(@.key+50==100)]
| | | | ^^^^^
Expand All @@ -397,7 +403,7 @@ <h4 id="Proposal_A">
| | | x 1:10-1:10 ScalarOperator
| | | | $[?(@.key+50==100)]
| | | | ^
| | | o 1:5-1:10 FilterValue
| | | o 1:5-1:10 DocumentValue
| | | | $[?(@.key+50==100)]
| | | | ^^^^^
| | | o 1:5-1:10 UnaryFilterExpression
Expand All @@ -406,6 +412,9 @@ <h4 id="Proposal_A">
| | | | x 1:10-1:10 ScalarOperator
| | | | | $[?(@.key+50==100)]
| | | | | ^
| | | | o 1:5-1:10 DocumentValue
| | | | | $[?(@.key+50==100)]
| | | | | ^^^^^
| | | | o 1:5-1:10 FilterValue
| | | | | $[?(@.key+50==100)]
| | | | | ^^^^^
Expand Down
15 changes: 12 additions & 3 deletions docs/results/filter_expression_with_division.html
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ <h4 id="Proposal_A">
| x 1:10-1:10 ScalarOperator
| | $[?(@.key/10==5)]
| | ^
| o 1:5-1:10 FilterValue
| o 1:5-1:10 DocumentValue
| | $[?(@.key/10==5)]
| | ^^^^^
| o 1:5-1:10 UnaryFilterExpression
Expand All @@ -379,6 +379,9 @@ <h4 id="Proposal_A">
| | x 1:10-1:10 ScalarOperator
| | | $[?(@.key/10==5)]
| | | ^
| | o 1:5-1:10 DocumentValue
| | | $[?(@.key/10==5)]
| | | ^^^^^
| | o 1:5-1:10 FilterValue
| | | $[?(@.key/10==5)]
| | | ^^^^^
Expand All @@ -398,7 +401,7 @@ <h4 id="Proposal_A">
| | x 1:10-1:10 ScalarOperator
| | | $[?(@.key/10==5)]
| | | ^
| | o 1:5-1:10 FilterValue
| | o 1:5-1:10 DocumentValue
| | | $[?(@.key/10==5)]
| | | ^^^^^
| | o 1:5-1:10 UnaryFilterExpression
Expand All @@ -407,6 +410,9 @@ <h4 id="Proposal_A">
| | | x 1:10-1:10 ScalarOperator
| | | | $[?(@.key/10==5)]
| | | | ^
| | | o 1:5-1:10 DocumentValue
| | | | $[?(@.key/10==5)]
| | | | ^^^^^
| | | o 1:5-1:10 FilterValue
| | | | $[?(@.key/10==5)]
| | | | ^^^^^
Expand All @@ -426,7 +432,7 @@ <h4 id="Proposal_A">
| | | x 1:10-1:10 ScalarOperator
| | | | $[?(@.key/10==5)]
| | | | ^
| | | o 1:5-1:10 FilterValue
| | | o 1:5-1:10 DocumentValue
| | | | $[?(@.key/10==5)]
| | | | ^^^^^
| | | o 1:5-1:10 UnaryFilterExpression
Expand All @@ -435,6 +441,9 @@ <h4 id="Proposal_A">
| | | | x 1:10-1:10 ScalarOperator
| | | | | $[?(@.key/10==5)]
| | | | | ^
| | | | o 1:5-1:10 DocumentValue
| | | | | $[?(@.key/10==5)]
| | | | | ^^^^^
| | | | o 1:5-1:10 FilterValue
| | | | | $[?(@.key/10==5)]
| | | | | ^^^^^
Expand Down
57 changes: 36 additions & 21 deletions docs/results/filter_expression_with_equals_array.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,20 @@ <h4 id="Proposal_A">

<p>Not supported</p>

<pre><code>x 1:10-1:10 IntegerPart
| $[?(@.d==["v1","v2"])]
| ^
x 1:10-1:10 Number
| $[?(@.d==["v1","v2"])]
| ^
x 1:10-1:10 SimpleValue
<pre><code>x 1:10-1:10 DocumentValue
| $[?(@.d==["v1","v2"])]
| ^
| x 1:10-1:10 IntegerPart
| | $[?(@.d==["v1","v2"])]
| | ^
| x 1:10-1:10 Number
| | $[?(@.d==["v1","v2"])]
| | ^
| x 1:10-1:10 SimpleValue
| | $[?(@.d==["v1","v2"])]
| | ^
| |
|/
x 1:10-1:10 FilterValue
| $[?(@.d==["v1","v2"])]
| ^
Expand All @@ -395,15 +400,20 @@ <h4 id="Proposal_A">
x 1:5-1:5 LogicalOr
| $[?(@.d==["v1","v2"])]
| ^
| x 1:10-1:10 IntegerPart
| | $[?(@.d==["v1","v2"])]
| | ^
| x 1:10-1:10 Number
| | $[?(@.d==["v1","v2"])]
| | ^
| x 1:10-1:10 SimpleValue
| x 1:10-1:10 DocumentValue
| | $[?(@.d==["v1","v2"])]
| | ^
| | x 1:10-1:10 IntegerPart
| | | $[?(@.d==["v1","v2"])]
| | | ^
| | x 1:10-1:10 Number
| | | $[?(@.d==["v1","v2"])]
| | | ^
| | x 1:10-1:10 SimpleValue
| | | $[?(@.d==["v1","v2"])]
| | | ^
| | |
| |/
| x 1:10-1:10 FilterValue
| | $[?(@.d==["v1","v2"])]
| | ^
Expand All @@ -413,15 +423,20 @@ <h4 id="Proposal_A">
| x 1:5-1:5 LogicalAnd
| | $[?(@.d==["v1","v2"])]
| | ^
| | x 1:10-1:10 IntegerPart
| | | $[?(@.d==["v1","v2"])]
| | | ^
| | x 1:10-1:10 Number
| | | $[?(@.d==["v1","v2"])]
| | | ^
| | x 1:10-1:10 SimpleValue
| | x 1:10-1:10 DocumentValue
| | | $[?(@.d==["v1","v2"])]
| | | ^
| | | x 1:10-1:10 IntegerPart
| | | | $[?(@.d==["v1","v2"])]
| | | | ^
| | | x 1:10-1:10 Number
| | | | $[?(@.d==["v1","v2"])]
| | | | ^
| | | x 1:10-1:10 SimpleValue
| | | | $[?(@.d==["v1","v2"])]
| | | | ^
| | | |
| | |/
| | x 1:10-1:10 FilterValue
| | | $[?(@.d==["v1","v2"])]
| | | ^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ <h4 id="Proposal_A">
| x 1:6-1:6 ScalarOperator
| | $[?(@[0:1]==[1])]
| | ^
| o 1:5-1:6 FilterValue
| o 1:5-1:6 DocumentValue
| | $[?(@[0:1]==[1])]
| | ^
| o 1:5-1:6 UnaryFilterExpression
Expand All @@ -303,6 +303,9 @@ <h4 id="Proposal_A">
| | x 1:6-1:6 ScalarOperator
| | | $[?(@[0:1]==[1])]
| | | ^
| | o 1:5-1:6 DocumentValue
| | | $[?(@[0:1]==[1])]
| | | ^
| | o 1:5-1:6 FilterValue
| | | $[?(@[0:1]==[1])]
| | | ^
Expand All @@ -322,7 +325,7 @@ <h4 id="Proposal_A">
| | x 1:6-1:6 ScalarOperator
| | | $[?(@[0:1]==[1])]
| | | ^
| | o 1:5-1:6 FilterValue
| | o 1:5-1:6 DocumentValue
| | | $[?(@[0:1]==[1])]
| | | ^
| | o 1:5-1:6 UnaryFilterExpression
Expand All @@ -331,6 +334,9 @@ <h4 id="Proposal_A">
| | | x 1:6-1:6 ScalarOperator
| | | | $[?(@[0:1]==[1])]
| | | | ^
| | | o 1:5-1:6 DocumentValue
| | | | $[?(@[0:1]==[1])]
| | | | ^
| | | o 1:5-1:6 FilterValue
| | | | $[?(@[0:1]==[1])]
| | | | ^
Expand All @@ -350,7 +356,7 @@ <h4 id="Proposal_A">
| | | x 1:6-1:6 ScalarOperator
| | | | $[?(@[0:1]==[1])]
| | | | ^
| | | o 1:5-1:6 FilterValue
| | | o 1:5-1:6 DocumentValue
| | | | $[?(@[0:1]==[1])]
| | | | ^
| | | o 1:5-1:6 UnaryFilterExpression
Expand All @@ -359,6 +365,9 @@ <h4 id="Proposal_A">
| | | | x 1:6-1:6 ScalarOperator
| | | | | $[?(@[0:1]==[1])]
| | | | | ^
| | | | o 1:5-1:6 DocumentValue
| | | | | $[?(@[0:1]==[1])]
| | | | | ^
| | | | o 1:5-1:6 FilterValue
| | | | | $[?(@[0:1]==[1])]
| | | | | ^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h4 id="Proposal_A">
x 1:6-1:6 ScalarOperator
| $[?(@.*==[1,2])]
| ^
o 1:5-1:6 FilterValue
o 1:5-1:6 DocumentValue
| $[?(@.*==[1,2])]
| ^
o 1:5-1:6 UnaryFilterExpression
Expand All @@ -265,6 +265,9 @@ <h4 id="Proposal_A">
| x 1:6-1:6 ScalarOperator
| | $[?(@.*==[1,2])]
| | ^
| o 1:5-1:6 DocumentValue
| | $[?(@.*==[1,2])]
| | ^
| o 1:5-1:6 FilterValue
| | $[?(@.*==[1,2])]
| | ^
Expand All @@ -282,7 +285,7 @@ <h4 id="Proposal_A">
| x 1:6-1:6 ScalarOperator
| | $[?(@.*==[1,2])]
| | ^
| o 1:5-1:6 FilterValue
| o 1:5-1:6 DocumentValue
| | $[?(@.*==[1,2])]
| | ^
| o 1:5-1:6 UnaryFilterExpression
Expand All @@ -294,6 +297,9 @@ <h4 id="Proposal_A">
| | x 1:6-1:6 ScalarOperator
| | | $[?(@.*==[1,2])]
| | | ^
| | o 1:5-1:6 DocumentValue
| | | $[?(@.*==[1,2])]
| | | ^
| | o 1:5-1:6 FilterValue
| | | $[?(@.*==[1,2])]
| | | ^
Expand All @@ -311,7 +317,7 @@ <h4 id="Proposal_A">
| | x 1:6-1:6 ScalarOperator
| | | $[?(@.*==[1,2])]
| | | ^
| | o 1:5-1:6 FilterValue
| | o 1:5-1:6 DocumentValue
| | | $[?(@.*==[1,2])]
| | | ^
| | o 1:5-1:6 UnaryFilterExpression
Expand All @@ -323,6 +329,9 @@ <h4 id="Proposal_A">
| | | x 1:6-1:6 ScalarOperator
| | | | $[?(@.*==[1,2])]
| | | | ^
| | | o 1:5-1:6 DocumentValue
| | | | $[?(@.*==[1,2])]
| | | | ^
| | | o 1:5-1:6 FilterValue
| | | | $[?(@.*==[1,2])]
| | | | ^
Expand Down
Loading

0 comments on commit 0a2f18b

Please sign in to comment.