jayzhan211 commented on code in PR #11526:
URL: https://github.com/apache/datafusion/pull/11526#discussion_r1681964481


##########
datafusion/sql/src/expr/function.rs:
##########
@@ -229,8 +229,23 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
 
         // user-defined function (UDF) should have precedence
         if let Some(fm) = self.context_provider.get_function_meta(&name) {
-            let args = self.function_args_to_expr(args, schema, 
planner_context)?;
-            return Ok(Expr::ScalarFunction(ScalarFunction::new_udf(fm, args)));
+            let argss =
+                self.function_args_to_expr(args.clone(), schema, 
planner_context)?;
+
+            // TODO: ExprPlanner
+            if name == "map" {

Review Comment:
   Replace with scalar planner



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to