-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Description
Description
This PR implements the crc32 function to calculate the CRC32 checksum of input data, which is compatible with Spark's crc32 function.
Rationale
The addition of the crc32 function allows users to calculate the CRC32 hash of binary or string data. This functionality is essential for performing checksum operations, especially for data integrity checks and error detection. By integrating this function, we align with Spark’s existing set of cryptographic functions and provide the ability to efficiently compute CRC32 checksums.
Functionality
Function Name: crc32
-
Input:
- The function accepts a
STRINGorBINARYinput.
- The function accepts a
-
Output:
- It returns a
LONGvalue representing theCRC32checksum of the input.
- It returns a
-
Behavior:
- The function computes the
CRC32checksum for the input string or binary data. - It is null-safe and returns
NULLwhen the input isNULL. - This implementation follows the standard
CRC32algorithm.
- The function computes the
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels