Skip to content

Commit

Permalink
fix(ingest): snowflake - remove back-ticks from table name when creat…
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurinehate authored and cccs-tom committed Nov 18, 2022
1 parent d0d1605 commit ba3b60a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit ba3b60a

Please sign in to comment.