Standing-Man commented on code in PR #18768:
URL: https://github.com/apache/datafusion/pull/18768#discussion_r2544316881


##########
datafusion/functions/src/crypto/basic.rs:
##########
@@ -295,7 +295,7 @@ impl DigestAlgorithm {
 
     pub fn digest_utf8_array_impl<'a, StringArrType>(
         self,
-        input_value: StringArrType,
+        input_value: &StringArrType,

Review Comment:
   You mean to keep the function definition like this:
   ```
   pub fn digest_utf8_array_impl<'a, StringArrType>(
       self, 
       input_value: StringArrType,
   ) -> ArrayRef 
   where
       StringArrType: StringArrayType<'a>,
   { ... }
   ```
   and then call it like this:
   ```
   self.digest_utf8_array_impl::<&GenericStringArray<T>>(&v)
   ```
   …but the Rust compiler still complains and doesn’t accept it.



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