Skip to content

Commit

Permalink
doc: update function docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng-Yuan-Lai committed Dec 28, 2024
1 parent 7e5c6c1 commit d2b08b3
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions docs/source/user-guide/sql/scalar_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -4217,7 +4217,7 @@ digest(expression, algorithm)

### `md5`

Computes an MD5 128-bit checksum for a string expression.
Computes an MD5 128-bit checksum for a string expression

```
md5(expression)
Expand All @@ -4243,7 +4243,7 @@ md5(expression)
Computes the SHA-224 hash of a binary string.

```
sha224(expression)
sha224(expression
```

#### Arguments
Expand All @@ -4266,7 +4266,7 @@ sha224(expression)
Computes the SHA-256 hash of a binary string.

```
sha256(expression)
sha256(expression
```

#### Arguments
Expand All @@ -4289,7 +4289,7 @@ sha256(expression)
Computes the SHA-384 hash of a binary string.

```
sha384(expression)
sha384(expression
```

#### Arguments
Expand All @@ -4300,34 +4300,34 @@ sha384(expression)

```sql
> select sha384('foo');
+-----------------------------------------+
| sha384(Utf8("foo")) |
+-----------------------------------------+
| <sha384_hash_result> |
+-----------------------------------------+
+--------------------------------------+
| sha384(Utf8("foo")) |
+--------------------------------------+
| <sha384_hash_result> |
+--------------------------------------+
```

### `sha512`

Computes the SHA-512 hash of a binary string.

```
sha512(expression)
sha512(expression
```

#### Arguments

- **expression**: String
- **expression**: String expression to operate on. Can be a constant, column, or function, and any combination of operators.

#### Example

```sql
> select sha512('foo');
+-------------------------------------------+
| sha512(Utf8("foo")) |
+-------------------------------------------+
| <sha512_hash_result> |
+-------------------------------------------+
+--------------------------------------+
| sha512(Utf8("foo")) |
+--------------------------------------+
| <sha512_hash_result> |
+--------------------------------------+
```

## Other Functions
Expand Down

0 comments on commit d2b08b3

Please sign in to comment.