From 157e749ffd8d06f6a7cf545e268b7a850c8e21e3 Mon Sep 17 00:00:00 2001 From: codingwithabhi <63392662+codingwithabhi@users.noreply.github.com> Date: Tue, 24 May 2022 13:07:11 +0530 Subject: [PATCH] glue-numeric-table-ingestion-fixed (#5102) --- ingestion/src/metadata/ingestion/source/glue.py | 2 +- ingestion/src/metadata/utils/column_type_parser.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ingestion/src/metadata/ingestion/source/glue.py b/ingestion/src/metadata/ingestion/source/glue.py index 20a163313f1..f89677270e8 100755 --- a/ingestion/src/metadata/ingestion/source/glue.py +++ b/ingestion/src/metadata/ingestion/source/glue.py @@ -175,7 +175,7 @@ class GlueSource(Source[Entity]): table.get("name"), ): self.status.filter( - "{}".format(table["name"]), + "{}".format(table["Name"]), "Table pattern not allowed", ) continue diff --git a/ingestion/src/metadata/utils/column_type_parser.py b/ingestion/src/metadata/utils/column_type_parser.py index efeb2a63fc5..392eef59599 100644 --- a/ingestion/src/metadata/utils/column_type_parser.py +++ b/ingestion/src/metadata/utils/column_type_parser.py @@ -181,6 +181,7 @@ class ColumnTypeParser: s: str, **kwargs: Any ) -> Union[object, Dict[str, object]]: s = s.strip() + s = s.replace(" ", "") if s.startswith("array<"): if s[-1] != ">": raise ValueError("expected '>' found: %s" % s)