@@ -1661,12 +1661,6 @@ fn select_simple_aggregate_with_groupby_aggregate_repeated() {
16611661
16621662#[ test]
16631663fn select_simple_aggregate_with_groupby_aggregate_repeated_and_one_has_alias ( ) {
1664- // quick_test(
1665- // "SELECT state, MIN(age), MIN(age) AS ma FROM person GROUP BY state",
1666- // "Projection: person.state, min(person.age), min(person.age) AS ma\
1667- // \n Aggregate: groupBy=[[person.state]], aggr=[[min(person.age)]]\
1668- // \n TableScan: person",
1669- // )
16701664 let plan = generate_plan (
16711665 "SELECT state, MIN(age), MIN(age) AS ma FROM person GROUP BY state" ,
16721666 ) ;
@@ -1682,12 +1676,6 @@ fn select_simple_aggregate_with_groupby_aggregate_repeated_and_one_has_alias() {
16821676
16831677#[ test]
16841678fn select_simple_aggregate_with_groupby_non_column_expression_unselected ( ) {
1685- // quick_test(
1686- // "SELECT MIN(first_name) FROM person GROUP BY age + 1",
1687- // "Projection: min(person.first_name)\
1688- // \n Aggregate: groupBy=[[person.age + Int64(1)]], aggr=[[min(person.first_name)]]\
1689- // \n TableScan: person",
1690- // );
16911679 let plan = generate_plan ( "SELECT MIN(first_name) FROM person GROUP BY age + 1" ) ;
16921680 assert_snapshot ! (
16931681 plan,
@@ -1701,12 +1689,6 @@ fn select_simple_aggregate_with_groupby_non_column_expression_unselected() {
17011689
17021690#[ test]
17031691fn select_simple_aggregate_with_groupby_non_column_expression_selected_and_resolvable ( ) {
1704- // quick_test(
1705- // "SELECT age + 1, MIN(first_name) FROM person GROUP BY age + 1",
1706- // "Projection: person.age + Int64(1), min(person.first_name)\
1707- // \n Aggregate: groupBy=[[person.age + Int64(1)]], aggr=[[min(person.first_name)]]\
1708- // \n TableScan: person",
1709- // );
17101692 let plan =
17111693 generate_plan ( "SELECT age + 1, MIN(first_name) FROM person GROUP BY age + 1" ) ;
17121694 assert_snapshot ! (
@@ -1717,12 +1699,6 @@ fn select_simple_aggregate_with_groupby_non_column_expression_selected_and_resol
17171699 TableScan: person
17181700 "#
17191701 ) ;
1720- // quick_test(
1721- // "SELECT MIN(first_name), age + 1 FROM person GROUP BY age + 1",
1722- // "Projection: min(person.first_name), person.age + Int64(1)\
1723- // \n Aggregate: groupBy=[[person.age + Int64(1)]], aggr=[[min(person.first_name)]]\
1724- // \n TableScan: person",
1725- // );
17261702 let plan =
17271703 generate_plan ( "SELECT MIN(first_name), age + 1 FROM person GROUP BY age + 1" ) ;
17281704 assert_snapshot ! (
@@ -1737,12 +1713,6 @@ fn select_simple_aggregate_with_groupby_non_column_expression_selected_and_resol
17371713
17381714#[ test]
17391715fn select_simple_aggregate_with_groupby_non_column_expression_nested_and_resolvable ( ) {
1740- // quick_test(
1741- // "SELECT ((age + 1) / 2) * (age + 1), MIN(first_name) FROM person GROUP BY age + 1",
1742- // "Projection: person.age + Int64(1) / Int64(2) * person.age + Int64(1), min(person.first_name)\
1743- // \n Aggregate: groupBy=[[person.age + Int64(1)]], aggr=[[min(person.first_name)]]\
1744- // \n TableScan: person",
1745- // );
17461716 let plan = generate_plan (
17471717 "SELECT ((age + 1) / 2) * (age + 1), MIN(first_name) FROM person GROUP BY age + 1"
17481718 ) ;
@@ -2922,10 +2892,6 @@ fn quick_test_with_options(sql: &str, expected: &str, options: ParserOptions) {
29222892 assert_eq ! ( format!( "{plan}" ) , expected) ;
29232893}
29242894
2925- // fn generate_plan_with_options(sql: &str, options: ParserOptions) -> LogicalPlan {
2926- // logical_plan_with_options(sql, options).unwrap()
2927- // }
2928-
29292895fn prepare_stmt_quick_test (
29302896 sql : & str ,
29312897 expected_plan : & str ,
0 commit comments