snowflake.snowpark.functions.sha1¶

snowflake.snowpark.functions.sha1(e: Union[Column, str]) → Column[source]¶

Returns a 40-character hex-encoded string containing the 160-bit SHA-1 message digest.

Example::
>>> df = session.create_dataframe(["a", "b"], schema=["col"]).select(sha1("col"))
>>> df.collect()
[Row(SHA1("COL")='86f7e437faa5a7fce15d1ddcb9eaeaea377667b8'), Row(SHA1("COL")='e9d71f5ee7c92d6dc9e92ffdad17b8bd49418f98')]
Copy