Skip to content

Commit

Permalink
Fixes miscellaneous test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Aug 8, 2024
1 parent 9aa7694 commit d7d19c3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 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
30 changes: 16 additions & 14 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 Expand Up @@ -118,10 +120,10 @@
result:EvaluationSuccess,
output:$bag::[
{
_1:(
1
2
)
_1: 1
},
{
_1: 2
}
]
}
Expand Down

0 comments on commit d7d19c3

Please sign in to comment.