jayzhan211 commented on code in PR #9980:
URL: https://github.com/apache/arrow-datafusion/pull/9980#discussion_r1554813169


##########
datafusion/core/src/execution/context/mod.rs:
##########
@@ -2047,6 +2052,11 @@ impl<'a> ContextProvider for SessionContextProvider<'a> {
     }
 
     fn get_function_meta(&self, name: &str) -> Option<Arc<ScalarUDF>> {
+        #[cfg(feature = "array_expressions")]
+        if let Some(udf) = functions_array::get_array_udf(name) {
+            return Some(udf);
+        }
+
         self.state.scalar_functions().get(name).cloned()

Review Comment:
   fallback to user defiend function. Assume they can register actual function 
. If they need to register closure instead, call 
`array_functions().lock().unwrap().insert(name.to_string(), udf)`



-- 
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]

Reply via email to