From ba3b60aa70c4bb28a76b48bd4331a88412663f32 Mon Sep 17 00:00:00 2001 From: Mayuri Nehate <33225191+mayurinehate@users.noreply.github.com> Date: Wed, 19 Oct 2022 16:02:54 +0530 Subject: [PATCH] fix(ingest): snowflake - remove back-ticks from table name when creating urn (#6236) --- .../src/datahub/ingestion/source/tableau_common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/metadata-ingestion/src/datahub/ingestion/source/tableau_common.py b/metadata-ingestion/src/datahub/ingestion/source/tableau_common.py index d93320dd664e7f..74e9759e97c4fa 100644 --- a/metadata-ingestion/src/datahub/ingestion/source/tableau_common.py +++ b/metadata-ingestion/src/datahub/ingestion/source/tableau_common.py @@ -465,9 +465,12 @@ def get_fully_qualified_table_name( # do some final adjustments on the fully qualified table name to help them line up with source systems: # lowercase it fully_qualified_table_name = fully_qualified_table_name.lower() - # strip double quotes and escaped double quotes + # strip double quotes, escaped double quotes and backticks fully_qualified_table_name = ( - fully_qualified_table_name.replace('\\"', "").replace('"', "").replace("\\", "") + fully_qualified_table_name.replace('\\"', "") + .replace('"', "") + .replace("\\", "") + .replace("`", "") ) if platform in ("athena", "hive", "mysql"):