Skip to content

Commit

Permalink
Fixes WHERE test and previously updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Apr 17, 2024
1 parent 3dba584 commit 23806ed
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions partiql-tests-data/eval/spec-tests.ion
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
statement: "SELECT x FROM someOrderedTable[0].a AS x",
assert: [
{
evalMode: [EvalModeCoerce, EvalModeError],
evalMode: EvalModeCoerce,
result: EvaluationSuccess,
output: $bag::[{x: 0}]
},
Expand Down Expand Up @@ -637,11 +637,17 @@
{
name: "WHERE clause eliminating absent values",
statement: "SELECT VALUE v.a FROM [{'a':1, 'b':true}, {'a':2, 'b':null}, {'a':3}] v WHERE v.b",
assert: {
evalMode: [EvalModeCoerce, EvalModeError],
result: EvaluationSuccess,
output: $bag::[1]
}
assert: [
{
evalMode: EvalModeCoerce,
result: EvaluationSuccess,
output: $bag::[1]
},
{
evalMode:EvalModeError,
result:EvaluationFail
},
]
},
{
name: "null is missing",
Expand Down

0 comments on commit 23806ed

Please sign in to comment.