Skip to content

Commit

Permalink
Add docs for to_string (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulimo authored Dec 23, 2023
1 parent 2a4ad87 commit e3bb37f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/docs/expressions/scalarfunctions/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,24 @@ Remove whitespaces from the end of a string
```sql
SELECT rtrim(c1) FROM ...
```

## To String

*No substrait definition exists for this function*

Converts different types to a string type.

Example output:

| Input | Type | Output |
| --------- | --------- | --------- |
| 'hello' | String | 'hello' |
| 13 | Int | '13' |
| 13.4 | Float | '13.4' |
| true | Bool | 'true' |

### SQL Usage

```sql
SELECT to_string(c1) FROM ...
```

0 comments on commit e3bb37f

Please sign in to comment.