Skip to content

Commit

Permalink
docs: Add encode and decode to the user guide (#6856)
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb authored Jul 7, 2023
1 parent 7a41907 commit f12f515
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/source/user-guide/sql/scalar_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,45 @@ Returns UUID v4 string value which is unique per row.
uuid()
```

## Binary String Functions

- [decode](#decode)
- [encode](#encode)

### `encode`

Encode binary data into a textual representation.

```
encode(expression, format)
```

#### Arguments

- **expression**: Expression containing string or binary data

- **format**: Supported formats are: `base64`, `hex`

**Related functions**:
[decode](#decode)

### `decode`

Decode binary data from textual representation in string.

```
decode(expression, format)
```

#### Arguments

- **expression**: Expression containing encoded string data

- **format**: Same arguments as [encode](#encode)

**Related functions**:
[encode](#encode)

## Regular Expression Functions

Apache DataFusion uses the POSIX regular expression syntax and
Expand Down

0 comments on commit f12f515

Please sign in to comment.