Skip to content

Commit e4a82cf

Browse files
Cheng-Yuan-LaiIan Lai
Cheng-Yuan-Lai
authored and
Ian Lai
committed
clean unused codes
1 parent f3173a5 commit e4a82cf

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

datafusion/functions/src/crypto/basic.rs

-25
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ pub fn utf8_or_binary_to_binary_type(
201201
arg_type: &DataType,
202202
name: &str,
203203
) -> Result<DataType> {
204-
dbg!(arg_type);
205204
Ok(match arg_type {
206205
DataType::Utf8View
207206
| DataType::LargeUtf8
@@ -270,30 +269,6 @@ impl DigestAlgorithm {
270269
}
271270
};
272271
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))
297272
}
298273

299274
/// digest a string array to their hash values

0 commit comments

Comments
 (0)