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

refactor(ingest): bigquery-lineage - allow tables and datasets in uppercase #6739

Merged
merged 8 commits into from
Dec 14, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get_tables(self) -> List[str]:
logger.error("sql holder not present so cannot get tables")
return result
for table in self._sql_holder.source_tables:
table_normalized = re.sub(r"^<default>.", "", str(table))
table_normalized = re.sub(r"^<default>.", "", table.raw_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be a configurable behavior and disabled by default and, please, can you add some test cases as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes!! I will do that!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@treff7es Can you have a look?

result.append(str(table_normalized))

# We need to revert TOKEN replacements
Expand Down