Compile Trino LENGTH (#4571)

This commit is contained in:
Pere Miquel Brull 2022-04-28 16:56:59 +02:00 committed by GitHub
parent f0139c3ea5
commit 21c14d257c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -39,5 +39,6 @@ def _(element, compiler, **kw):
@compiles(LenFn, Dialects.MySQL)
@compiles(LenFn, Dialects.MariaDB)
@compiles(LenFn, Dialects.Athena)
@compiles(LenFn, Dialects.Trino)
def _(element, compiler, **kw):
return "LENGTH(%s)" % compiler.process(element.clauses, **kw)

View File

@ -44,7 +44,7 @@ class Dialects(Enum):
Oracle = "oracle"
Athena = "awsathena"
Presto = "presto"
Trino = "Trino"
Trino = "trino"
Vertica = "vertica"
Glue = "glue"
MariaDB = "mariadb"