pyflink.table.expression.Expression.sha2#
- Expression.sha2(hash_length: int | Expression[int]) Expression[str][source]#
Returns the hash for the given string expression using the SHA-2 family of hash functions (SHA-224, SHA-256, SHA-384, or SHA-512).
- Parameters:
hash_length – bit length of the result (either 224, 256, 384, or 512)
- Returns:
string or null if one of the arguments is null.
Added in version 1.12.0.