Add presto LENGTH (#4830)

This commit is contained in:
Pere Miquel Brull 2022-05-10 10:29:59 +02:00 committed by GitHub
parent 76e36e812d
commit a31620af3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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