Skip to content

Commit 2ace686

Browse files
authored
Herd stray left translation snippet
1 parent 6eebbaa commit 2ace686

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/reference/dune-v2/query-engine.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ The syntax and keyword operator differences between Postgres, Spark, and Dune SQ
4242
| **Using “is True/False”** | `X is true` | `X is true` | `X = true` |
4343
| **String Data Type** | `varchar` | `string` | `varchar` |
4444
| **Casting as Strings** | `cast([xxx] as string)` | `cast([xxx] as string)` | `cast([xxx] as varchar)` |
45-
| **`left()` is no longer a method available for returning substrings** | `left([string],[length])` | `left([string],[length])` | `substr([string], [start], [length])` <br><br> [Returns varchar; Positions start with 1, so use `1` for length if you want to replicate left() functionality](https://trino.io/docs/current/functions/string.html?highlight=substr#substring)|
45+
| **`left()` is no longer a method available for returning substrings** | `left([string],[length])` | `left([string],[length])` | `substr([string], [start], [length])` <br><br> [Returns varchar; Positions start with 1, so use `1` for length if you want to replicate left() functionality](https://trino.io/docs/current/functions/string.html?highlight=substr#substring) `left(somestring, somenumber) -> substr(somestring, 0, somenumber)`|
4646
| **Aggregate Functions** | `array_agg(col)`, `array_agg(distinct(col))` | `array_agg(col)` or `collect_list(col)`, `collect_set(col)` or `array_agg(distinct(col))` | `array_agg(col)`, `array_agg(distinct(col))` |
4747

4848

49-
left(somestring, somenumber) -> substr(somestring, 0, somenumber)
50-
5149
### Double quotes are not recommended
5250

5351
Using double quotes is not recommended in DuneV2, even when the engine runs your query without returning an error.

0 commit comments

Comments
 (0)