goldmedal commented on code in PR #13918: URL: https://github.com/apache/datafusion/pull/13918#discussion_r1898784807
########## datafusion/functions/src/crypto/digest.rs: ########## @@ -19,13 +19,38 @@ use super::basic::{digest, utf8_or_binary_to_binary_type}; use arrow::datatypes::DataType; use datafusion_common::Result; -use datafusion_expr::scalar_doc_sections::DOC_SECTION_HASHING; use datafusion_expr::{ ColumnarValue, Documentation, ScalarUDFImpl, Signature, TypeSignature::*, Volatility, }; +use datafusion_macros::user_doc; use std::any::Any; -use std::sync::OnceLock; +#[user_doc( + doc_section(label = "Hashing Functions"), + description = "Computes the binary hash of an expression using the specified algorithm.", + syntax_example = "digest(expression, algorithm)", + sql_example = r#"```sql +> select digest('foo', 'sha256'); ++------------------------------------------+ +| digest(Utf8("foo"), Utf8("sha256")) | ++------------------------------------------+ +| <binary_hash_result> | ++------------------------------------------+ +```"#, + standard_argument(name = "expression", prefix = "String"), + argument( + name = "algorithm", + description = "String expression specifying algorithm to use. Must be one of: +- md5 +- sha224 +- sha256 +- sha384 +- sha512 +- blake2s +- blake2b +- blake3" Review Comment: ```suggestion - md5 - sha224 - sha256 - sha384 - sha512 - blake2s - blake2b - blake3" ``` Maybe we can add some indents for them to format them like  -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org