Skip to content

Commit

Permalink
Merge pull request #598 from awslabs/hubin/daily
Browse files Browse the repository at this point in the history
fix(be): update catalog logic
  • Loading branch information
530051970 authored May 13, 2024
2 parents bf2b82a + b2ba232 commit 003c5fa
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 003c5fa

Please sign in to comment.