From 49fa5c4f7f569727d98d9b1c35afc7bf020dd80e Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Fri, 3 Jun 2022 11:39:43 +0200 Subject: [PATCH] Add Oracle LENGTH (#5287) --- ingestion/src/metadata/orm_profiler/orm/functions/length.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ingestion/src/metadata/orm_profiler/orm/functions/length.py b/ingestion/src/metadata/orm_profiler/orm/functions/length.py index 46d16f40ae4..fb09804dbcf 100644 --- a/ingestion/src/metadata/orm_profiler/orm/functions/length.py +++ b/ingestion/src/metadata/orm_profiler/orm/functions/length.py @@ -43,6 +43,7 @@ def _(element, compiler, **kw): @compiles(LenFn, Dialects.Trino) @compiles(LenFn, Dialects.Presto) @compiles(LenFn, Dialects.BigQuery) +@compiles(LenFn, Dialects.Oracle) def _(element, compiler, **kw): return "LENGTH(%s)" % compiler.process(element.clauses, **kw)