This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 9cf44c2c29 Minor: fixed transformed state return (#9484)
9cf44c2c29 is described below
commit 9cf44c2c29f7817104843d1fb639091540f43c16
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Mar 8 17:15:38 2024 -0500
Minor: fixed transformed state return (#9484)
---
datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs
b/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs
index ef034a5ed7..344a738fe8 100644
--- a/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs
+++ b/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs
@@ -1308,12 +1308,12 @@ impl<'a, S: SimplifyInfo> TreeNodeRewriter for
Simplifier<'a, S> {
args,
}) => match udf.simplify(args, info)? {
ExprSimplifyResult::Original(args) => {
- Transformed::yes(Expr::ScalarFunction(ScalarFunction {
+ Transformed::no(Expr::ScalarFunction(ScalarFunction {
func_def: ScalarFunctionDefinition::UDF(udf),
args,
}))
}
- ExprSimplifyResult::Simplified(expr) => Transformed::no(expr),
+ ExprSimplifyResult::Simplified(expr) => Transformed::yes(expr),
},
// log