PsiACE commented on code in PR #11968:
URL: https://github.com/apache/datafusion/pull/11968#discussion_r1717652442


##########
datafusion/functions/src/string/overlay.rs:
##########
@@ -76,54 +80,107 @@ impl ScalarUDFImpl for OverlayFunc {
 
     fn invoke(&self, args: &[ColumnarValue]) -> Result<ColumnarValue> {
         match args[0].data_type() {
-            DataType::Utf8 => make_scalar_function(overlay::<i32>, 
vec![])(args),
+            DataType::Utf8View | DataType::Utf8 => {
+                make_scalar_function(overlay::<i32>, vec![])(args)
+            }
             DataType::LargeUtf8 => make_scalar_function(overlay::<i64>, 
vec![])(args),
             other => exec_err!("Unsupported data type {other:?} for function 
overlay"),
         }
     }
 }
 
+macro_rules! process_overlay {

Review Comment:
   The current style is inspired by rpad in #11942 . I'll be rewriting it with 
`ArrayAccessor`, which I've used in other PRs, and it's a much more elegant way.



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