Skip to content

Commit

Permalink
upgrade the datafusion version
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Dec 27, 2024
1 parent 8c23463 commit 22da36d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions wren-core/core/src/mdl/dialect/wren_dialect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 })],
})
}

Expand Down
2 changes: 1 addition & 1 deletion wren-core/core/src/mdl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 22da36d

Please sign in to comment.