pyspark.sql.functions.crc32¶
-
pyspark.sql.functions.
crc32
(col: ColumnOrName) → pyspark.sql.column.Column¶ Calculates the cyclic redundancy check value (CRC32) of a binary column and returns the value as a bigint.
Examples
>>> spark.createDataFrame([('ABC',)], ['a']).select(crc32('a').alias('crc32')).collect() [Row(crc32=2743272264)]