diff --git a/ingestion/src/metadata/orm_profiler/orm/functions/length.py b/ingestion/src/metadata/orm_profiler/orm/functions/length.py index d92b3597fb6..0c66033ea7f 100644 --- a/ingestion/src/metadata/orm_profiler/orm/functions/length.py +++ b/ingestion/src/metadata/orm_profiler/orm/functions/length.py @@ -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) diff --git a/ingestion/src/metadata/orm_profiler/orm/registry.py b/ingestion/src/metadata/orm_profiler/orm/registry.py index 26a302d1614..6bea9fbe6c0 100644 --- a/ingestion/src/metadata/orm_profiler/orm/registry.py +++ b/ingestion/src/metadata/orm_profiler/orm/registry.py @@ -44,7 +44,7 @@ class Dialects(Enum): Oracle = "oracle" Athena = "awsathena" Presto = "presto" - Trino = "Trino" + Trino = "trino" Vertica = "vertica" Glue = "glue" MariaDB = "mariadb"