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(be): update catalog logic #598

Merged
merged 2 commits into from
May 13, 2024
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
5 changes: 3 additions & 2 deletions source/constructs/api/catalog/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ def sync_job_detection_result(
column_path = __get_athena_column_value(row["Data"][6], "str"),
location = __get_athena_column_value(row["Data"][7], "str"),
table_size_dict[table_name] = table_size
table_size_dict[location] = table_size
# table_size_dict[location] = table_size
if table_name in table_column_dict:
table_column_dict[table_name].append(column_name)
else:
Expand Down Expand Up @@ -913,7 +913,8 @@ def sync_job_detection_result(

tmp_database_catalog_table_dict = {}
for key, value in database_catalog_table_dict.items():
new_key = key.replace(".", "_")
key_array=key.split(".")
new_key = f"{key_array[0]}_{key_array[1].replace('-', '_')}"
tmp_database_catalog_table_dict[new_key] = value

if table_name in tmp_database_catalog_table_dict:
Expand Down
Loading