From 71209620deb24f68b1c2fa4e95731c5f30a9f36b Mon Sep 17 00:00:00 2001 From: Akhilender Date: Wed, 23 Oct 2024 14:33:39 +0530 Subject: [PATCH] fix: ordering to debug test failure - maybe follows the alphabetical ordering --- crates/proof-of-sql/src/sql/parse/query_expr_tests.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/proof-of-sql/src/sql/parse/query_expr_tests.rs b/crates/proof-of-sql/src/sql/parse/query_expr_tests.rs index c79b77456..ff6fc2bec 100644 --- a/crates/proof-of-sql/src/sql/parse/query_expr_tests.rs +++ b/crates/proof-of-sql/src/sql/parse/query_expr_tests.rs @@ -1115,8 +1115,8 @@ fn group_by_expressions_are_parsed_before_an_order_by_referencing_an_aggregate_a let accessor = schema_accessor_from_table_ref_with_schema( t, indexmap! { - "salary".parse().unwrap() => ColumnType::BigInt, "department_budget".parse().unwrap() => ColumnType::BigInt, + "salary".parse().unwrap() => ColumnType::BigInt, "tax".parse().unwrap() => ColumnType::BigInt, }, ); @@ -1401,10 +1401,10 @@ fn we_can_use_multiple_group_by_clauses_with_multiple_agg_and_non_agg_exprs() { let accessor = schema_accessor_from_table_ref_with_schema( t, indexmap! { - "salary".parse().unwrap() => ColumnType::BigInt, "bonus".parse().unwrap() => ColumnType::BigInt, - "tax".parse().unwrap() => ColumnType::BigInt, "name".parse().unwrap() => ColumnType::VarChar, + "salary".parse().unwrap() => ColumnType::BigInt, + "tax".parse().unwrap() => ColumnType::BigInt, }, ); let query_text = "select salary d1, max(tax), salary d2, sum(bonus) sum_bonus, count(name) count_s from sxt.employees group by salary, bonus, salary"; @@ -1916,9 +1916,9 @@ fn count_aggregation_always_have_integer_type() { let accessor = schema_accessor_from_table_ref_with_schema( t, indexmap! { - "name".parse().unwrap() => ColumnType::VarChar, - "salary".parse().unwrap() => ColumnType::BigInt, "tax".parse().unwrap() => ColumnType::Int128, + "salary".parse().unwrap() => ColumnType::BigInt, + "name".parse().unwrap() => ColumnType::VarChar, }, ); let query_text =