You are viewing documentation about an older version (1.16.0). View latest version

snowflake.snowpark.functions.md5

snowflake.snowpark.functions.md5(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L2034-L2045)

Returns a 32-character hex-encoded string containing the 128-bit MD5 message digest.

Example:

>>> df = session.create_dataframe(["a", "b"], schema=["col"]).select(md5("col"))
>>> df.collect()
[Row(MD5("COL")='0cc175b9c0f1b6a831c399e269772661'), Row(MD5("COL")='92eb5ffee6ae2fec3ad71c777531578f')]
Copy
Language: English