pyspark.sql.functions.
crc32
Calculates the cyclic redundancy check value (CRC32) of a binary column and returns the value as a bigint.
New in version 1.5.0.
Examples
>>> spark.createDataFrame([('ABC',)], ['a']).select(crc32('a').alias('crc32')).collect() [Row(crc32=2743272264)]