Live Aug 13: Build a real-time context layer for models and agents
Aug 13: Context layer webinar
Chalk home page
Search...
Try Chalk
Book Demo
Theme
Navigation
Navigation
Chalk SQL
Hash Functions | Chalk SQL
Documentation
References
Tutorials
Updates
Introduction
Documentation Home
What is Chalk?
Core Concepts
Platform Architecture
Chalk Serverless
Billing
Choosing Where to Run Code
Installation
Editor setup
Development with LLMs
Feature Engine
Getting Started
Features
Aggregations
Streaming
Resolvers
Integrations
Testing
Time
Deployment
Queries
Scheduling and Workflows
Model Platform
Notebooks
Sandboxes
Evaluations
Functions and Scaling Groups
Runtime Environment
Chalk SQL
Developer Interface
Observability
Infrastructure
Security
Hash Functions
Copy for LLM
View as Markdown
crc32(binary)
Calculates the CRC32 checksum of
binary
data.
Parameters
binary:
large_binary
The input
binary
value.
hmac_md5(binary, key)
Computes HMAC-MD5 authentication code for data using a secret
key
.
Parameters
binary:
large_binary
The input
binary
value.
key:
large_binary
The map
key
to read or update.
hmac_sha1(binary, key)
Computes HMAC-SHA1 authentication code for data using a secret
key
.
Parameters
binary:
large_binary
The input
binary
value.
key:
large_binary
The map
key
to read or update.
hmac_sha256(binary, key)
Computes HMAC-SHA256 authentication code for data using a secret
key
.
Parameters
binary:
large_binary
The input
binary
value.
key:
large_binary
The map
key
to read or update.
hmac_sha512(binary, key)
Computes HMAC-SHA512 authentication code for data using a secret
key
.
Parameters
binary:
large_binary
The input
binary
value.
key:
large_binary
The map
key
to read or update.
iceberg_bucket(x, y)
Returns the Iceberg bucket id for a value: (murmur3_x86_32(value) & 2147483647) % num_buckets.
Examples
SELECT
iceberg_bucket
(
34
,
100
)
;
SELECT
iceberg_bucket
(
'iceberg'
,
100
)
;
Overloads
▲
iceberg_bucket(x, y)
▲
iceberg_bucket(x, y)
md5(binary)
Computes the MD5 hash of
binary
data.
Parameters
binary:
large_binary
The input
binary
value.
sha1(binary)
Computes the SHA-1 hash of
binary
data.
Parameters
binary:
large_binary
The input
binary
value.
sha256(binary)
Computes the SHA-256 hash of
binary
data.
Parameters
binary:
large_binary
The input
binary
value.
sha512(binary)
Computes the SHA-512 hash of
binary
data.
Parameters
binary:
large_binary
The input
binary
value.
spooky_hash_v2_32(binary)
Computes a 32-bit SpookyHash V2 hash of
binary
data.
Parameters
binary:
large_binary
The input
binary
value.
spooky_hash_v2_64(binary)
Computes a 64-bit SpookyHash V2 hash of
binary
data.
Parameters
binary:
large_binary
The input
binary
value.
xxhash64(binary, ...)
Computes a 64-bit XXHash of
binary
data, optionally with a
seed
.
Overloads
▲
xxhash64(binary, seed)
▲
xxhash64(binary)
On this page
crc32
hmac_md5
hmac_sha1
hmac_sha256
hmac_sha512
iceberg_bucket
md5
sha1
sha256
sha512
spooky_hash_v2_32
spooky_hash_v2_64
xxhash64