Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ingest): remove back-ticks from table name when creating urn #6236

Merged
merged 2 commits into from
Oct 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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