Skip to content

Commit

Permalink
fix(ingest/glue): Profiling breaks for non-partitioned tables due to …
Browse files Browse the repository at this point in the history
…absent `Table.PartitionKeys` (#9591)
  • Loading branch information
KulykDmytro authored Jan 26, 2024
1 parent f7f0b14 commit fc27ab2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metadata-ingestion/src/datahub/ingestion/source/aws/glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,8 @@ def get_profile_if_enabled(
**{k: v for k, v in kwargs.items() if v}
)

partition_keys = response["Table"]["PartitionKeys"]

# check if this table is partitioned
partition_keys = response["Table"].get("PartitionKeys")
if partition_keys:
# ingest data profile with partitions
# for cross-account ingestion
Expand Down

0 comments on commit fc27ab2

Please sign in to comment.