Skip to main content

Categories: String, Binary

CRC32

Returns the cyclic redundancy check (CRC-32) checksum of the input string as a BIGINT.

Syntax​

CRC32(expression varchar) → bigint​

  • expression: The string to compute the CRC-32 checksum for.

Examples

CRC32 example
SELECT CRC32('Dremio')
-- 2212276499
CRC32 example
SELECT CRC32(100)
-- 595022058
CRC32 example
SELECT CRC32(-100)
-- 2938773767
Compute the CRC-32 checksum of a string with a non-ASCII character
SELECT CRC32('Drémio')
-- 3693679118
Compute the CRC-32 checksum of a NULL value
SELECT CRC32(NULL)
-- null