Skip to content

Commit

Permalink
Fixes more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Apr 17, 2024
1 parent 1785b61 commit 08b6655
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 29 deletions.
8 changes: 4 additions & 4 deletions partiql-tests-data/eval/query/group-by/group-by.ion
Original file line number Diff line number Diff line change
Expand Up @@ -7375,8 +7375,8 @@
}
},
{
name:"Expression with multiple subqueriees containing aggregates : CAST((SELECT COUNT(1) FROM products) AS LIST)[0]._1 / CAST((SELECT COUNT(1) FROM suppliers) AS LIST)[0]._1",
statement:"CAST((SELECT COUNT(1) FROM products) AS LIST)[0]._1 / CAST((SELECT COUNT(1) FROM suppliers) AS LIST)[0]._1",
name:"Expression with multiple subqueries containing aggregates : (SELECT COUNT(1) FROM products) / (SELECT COUNT(1) FROM suppliers)",
statement:"(SELECT COUNT(1) FROM products) / (SELECT COUNT(1) FROM suppliers)",
assert:{
result:EvaluationSuccess,
evalMode:[
Expand All @@ -7387,8 +7387,8 @@
}
},
{
name:"Aggregates with subquery containing another aggregate : SELECT COUNT(1) + CAST((SELECT SUM(numInStock) FROM products) AS LIST)[0]._1 as a_number FROM products",
statement:"SELECT COUNT(1) + CAST((SELECT SUM(numInStock) FROM products) AS LIST)[0]._1 as a_number FROM products",
name:"Aggregates with subquery containing another aggregate : SELECT COUNT(1) + (SELECT SUM(numInStock) FROM products) as a_number FROM products",
statement:"SELECT COUNT(1) + (SELECT SUM(numInStock) FROM products) as a_number FROM products",
assert:{
result:EvaluationSuccess,
evalMode:[
Expand Down
30 changes: 5 additions & 25 deletions partiql-tests-data/eval/query/select/sql-aggregate.ion
Original file line number Diff line number Diff line change
Expand Up @@ -832,31 +832,11 @@ multiple_sql_aggregates::[
evalMode:[EvalModeCoerce, EvalModeError],
result:EvaluationSuccess,
output:$bag::[
$bag::[
{
result:27.
}
],
$bag::[
{
result:29.0
}
],
$bag::[
{
result:31.
}
],
$bag::[
{
result:33.
}
],
$bag::[
{
result:35.
}
]
27.,
29.0,
31.,
33.,
35.
]
}
},
Expand Down

0 comments on commit 08b6655

Please sign in to comment.