Skip to content

Commit 8fddf3c

Browse files
committed
Updating tests
1 parent e1625f3 commit 8fddf3c

4 files changed

Lines changed: 128 additions & 128 deletions

File tree

datafusion/expr/src/expr_rewriter/order_by.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use datafusion_common::tree_node::{Transformed, TransformedResult, TreeNode};
2525
use datafusion_common::{Column, Result};
2626

2727
/// Rewrite sort on aggregate expressions to sort on the column of aggregate output
28-
/// For example, `max(x)` is written to `col("MAX(x)")`
28+
/// For example, `max(x)` is written to `col("max(x)")`
2929
pub fn rewrite_sort_cols_by_aggs(
3030
exprs: impl IntoIterator<Item = impl Into<Expr>>,
3131
plan: &LogicalPlan,

datafusion/sql/tests/cases/plan_to_sql.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,15 +295,15 @@ fn roundtrip_statement_with_dialect() -> Result<()> {
295295
sql: "SELECT string_count FROM (
296296
SELECT
297297
j1_id,
298-
MIN(j2_string)
298+
min(j2_string)
299299
FROM
300300
j1 LEFT OUTER JOIN j2 ON
301301
j1_id = j2_id
302302
GROUP BY
303303
j1_id
304304
) AS agg (id, string_count)
305305
",
306-
expected: r#"SELECT agg.string_count FROM (SELECT j1.j1_id, MIN(j2.j2_string) FROM j1 LEFT JOIN j2 ON (j1.j1_id = j2.j2_id) GROUP BY j1.j1_id) AS agg (id, string_count)"#,
306+
expected: r#"SELECT agg.string_count FROM (SELECT j1.j1_id, min(j2.j2_string) FROM j1 LEFT JOIN j2 ON (j1.j1_id = j2.j2_id) GROUP BY j1.j1_id) AS agg (id, string_count)"#,
307307
parser_dialect: Box::new(GenericDialect {}),
308308
unparser_dialect: Box::new(UnparserDefaultDialect {}),
309309
},

0 commit comments

Comments
 (0)