From 22da36d72d6b97ae688fdf9708632f3c236f96bd Mon Sep 17 00:00:00 2001 From: Jax Liu Date: Fri, 27 Dec 2024 16:13:06 +0800 Subject: [PATCH] upgrade the datafusion version --- wren-core/core/src/mdl/dialect/wren_dialect.rs | 4 +--- wren-core/core/src/mdl/mod.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wren-core/core/src/mdl/dialect/wren_dialect.rs b/wren-core/core/src/mdl/dialect/wren_dialect.rs index e6fc1af2f..15036bb33 100644 --- a/wren-core/core/src/mdl/dialect/wren_dialect.rs +++ b/wren-core/core/src/mdl/dialect/wren_dialect.rs @@ -121,9 +121,7 @@ impl WrenDialect { let index = unparser.expr_to_sql(&args[1])?; Ok(ast::Expr::CompoundFieldAccess { root: Box::new(array), - access_chain: vec![AccessExpr::Subscript(Subscript::Index { - index, - })], + access_chain: vec![AccessExpr::Subscript(Subscript::Index { index })], }) } diff --git a/wren-core/core/src/mdl/mod.rs b/wren-core/core/src/mdl/mod.rs index 6098a3adb..a871c337b 100644 --- a/wren-core/core/src/mdl/mod.rs +++ b/wren-core/core/src/mdl/mod.rs @@ -214,7 +214,7 @@ impl WrenMDL { } if let Some(expression) = column.expression() { - let ExprWithAlias { expr, alias} = WrenMDL::sql_to_expr(expression)?; + let ExprWithAlias { expr, alias } = WrenMDL::sql_to_expr(expression)?; // if the column is a simple column reference, we can infer the column name if let Some(name) = Self::collect_one_column(&expr) { Ok(Some(Field::new(