@@ -201,7 +201,6 @@ pub fn utf8_or_binary_to_binary_type(
201
201
arg_type : & DataType ,
202
202
name : & str ,
203
203
) -> Result < DataType > {
204
- dbg ! ( arg_type) ;
205
204
Ok ( match arg_type {
206
205
DataType :: Utf8View
207
206
| DataType :: LargeUtf8
@@ -270,30 +269,6 @@ impl DigestAlgorithm {
270
269
}
271
270
} ;
272
271
Ok ( ColumnarValue :: Array ( array) )
273
- // let input_value = as_generic_binary_array::<T>(value)?;
274
- // let array: ArrayRef = match self {
275
- // Self::Md5 => digest_to_array!(Md5, input_value),
276
- // Self::Sha224 => digest_to_array!(Sha224, input_value),
277
- // Self::Sha256 => digest_to_array!(Sha256, input_value),
278
- // Self::Sha384 => digest_to_array!(Sha384, input_value),
279
- // Self::Sha512 => digest_to_array!(Sha512, input_value),
280
- // Self::Blake2b => digest_to_array!(Blake2b512, input_value),
281
- // Self::Blake2s => digest_to_array!(Blake2s256, input_value),
282
- // Self::Blake3 => {
283
- // let binary_array: BinaryArray = input_value
284
- // .iter()
285
- // .map(|opt| {
286
- // opt.map(|x| {
287
- // let mut digest = Blake3::default();
288
- // digest.update(x);
289
- // Blake3::finalize(&digest).as_bytes().to_vec()
290
- // })
291
- // })
292
- // .collect();
293
- // Arc::new(binary_array)
294
- // }
295
- // };
296
- // Ok(ColumnarValue::Array(array))
297
272
}
298
273
299
274
/// digest a string array to their hash values
0 commit comments