Skip to content

Commit

Permalink
feat: update ScalarFunction
Browse files Browse the repository at this point in the history
The field `func_name` was changed to `func` as part of removing `ScalarFunctionDefinition` upstream.

Ref apache/datafusion#10325
  • Loading branch information
Michael-J-Ward committed Jun 12, 2024
1 parent b98378e commit 23f195d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,7 @@ impl PyExpr {
op,
right: _,
}) => format!("{op}"),
Expr::ScalarFunction(ScalarFunction { func_def, args: _ }) => {
func_def.name().to_string()
}
Expr::ScalarFunction(ScalarFunction { func, args: _ }) => func.name().to_string(),
Expr::Cast { .. } => "cast".to_string(),
Expr::Between { .. } => "between".to_string(),
Expr::Case { .. } => "case".to_string(),
Expand Down

0 comments on commit 23f195d

Please sign in to comment.