Hash related functions.
Returns a CRC32 hash for a given string expression.
hashCrc32(expression)
| Parameter | Type | Description | Required |
|---|---|---|---|
expression | string | The string expression that will be hashed. | Required |
The data type of the returned value is string.
data record(s = "DQL is awesome!")| fieldsAdd hashCrc32(s)
Query result:
| s | hashCrc32(s) |
|---|---|
|
|
Computes the MD5 hash for a given string expression.
hashMd5(expression)
| Parameter | Type | Description | Required |
|---|---|---|---|
expression | string | The expression from which the MD5 hash needs to be computed. | Required |
The data type of the returned value is string.
data record(s = "DQL is awesome!")| fieldsAdd hashMd5(s)
Query result:
| s | hashMd5(s) |
|---|---|
|
|
Computes the SHA-1 hash for a given string expression.
hashSha1(expression)
| Parameter | Type | Description | Required |
|---|---|---|---|
expression | string | The expression from which the SHA-1 hash needs to be computed. | Required |
The data type of the returned value is string.
data record(s = "DQL is awesome!")| fieldsAdd hashSha1(s)
Query result:
| s | hashSha1(s) |
|---|---|
|
|
Returns a SHA-256 hash for the given expression.
hashSha256(expression)
| Parameter | Type | Description | Required |
|---|---|---|---|
expression | string | The string expression that will be hashed. | Required |
The data type of the returned value is string.
data record(s = "DQL is awesome!")| fieldsAdd hashSha256(s)
Query result:
| s | hashSha256(s) |
|---|---|
|
|
Returns a SHA-512 hash for the given expression.
hashSha512(expression)
| Parameter | Type | Description | Required |
|---|---|---|---|
expression | string | The string expression that will be hashed. | Required |
The data type of the returned value is string.
data record(s = "DQL is awesome!")| fieldsAdd hashSha512(s)
Query result:
| s | hashSha512(s) |
|---|---|
|
|
Returns a xxHash32 hash for a given string expression.
hashXxHash32(expression)
| Parameter | Type | Description | Required |
|---|---|---|---|
expression | string | The expression that is considered for the hash function. | Required |
The data type of the returned value is string.
data record(s = "DQL is awesome!")| fieldsAdd hashXxHash32(s)
Query result:
| s | hashXxHash32(s) |
|---|---|
|
|
Returns a xxHash64 hash for a given string expression.
hashXxHash64(expression)
| Parameter | Type | Description | Required |
|---|---|---|---|
expression | string | The expression that is considered for the hash function. | Required |
The data type of the returned value is string.
data record(s = "DQL is awesome!")| fieldsAdd hashXxHash64(s)
Query result:
| s | hashXxHash64(s) |
|---|---|
|
|