Skip to content

Commit

Permalink
Merge pull request #126 from partiql/main-fix-misc
Browse files Browse the repository at this point in the history
Fixes miscellaneous test cases
  • Loading branch information
johnedquinn authored Aug 27, 2024
2 parents 058bdde + eb10224 commit 9ea5a46
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
15 changes: 10 additions & 5 deletions partiql-tests-data/eval/query/pivot.ion
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@ pivot::[
{
name:"pivotBadFieldType",
statement:"PIVOT a.name AT i FROM animals AS a AT i",
assert:{
evalMode:[EvalModeCoerce, EvalModeError],
result:EvaluationSuccess,
output:{
assert: [
{
evalMode: EvalModeCoerce,
result: EvaluationSuccess,
output:{}
},
{
evalMode: EvalModeError,
result: EvaluationFail
}
}
]
},
{
name:"pivotUnpivotWithWhereOrderByLimit",
Expand Down
22 changes: 12 additions & 10 deletions partiql-tests-data/eval/query/select/projection.ion
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,25 @@
{
name:"projectionIterationBehaviorUnfiltered_select_list",
statement:"select x.someColumn from <<{'someColumn': MISSING}>> AS x",
assert:{
evalMode:[EvalModeCoerce, EvalModeError],
result:EvaluationSuccess,
output:$bag::[{}]
}
assert: [
{
evalMode: EvalModeCoerce,
result: EvaluationSuccess,
output: $bag::[{}]
},
{
evalMode: EvalModeError,
result: EvaluationFail
}
]
},
{
name:"projectionIterationBehaviorUnfiltered_select_star",
statement:"select * from <<{'someColumn': MISSING}>>",
assert:{
evalMode:[EvalModeCoerce, EvalModeError],
result:EvaluationSuccess,
output:$bag::[
{
_1:{}
}
]
output:$bag::[ { } ]
}
}
]
Expand Down

0 comments on commit 9ea5a46

Please sign in to comment.