fix(ingest/glue): Profiling breaks for non-partitioned tables due to absent Table.PartitionKeys (#9591)

This commit is contained in:
Dmytro Kulyk 2024-01-26 20:54:06 +02:00 committed by GitHub
parent f7f0b14f37
commit fc27ab2fb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -833,9 +833,8 @@ class GlueSource(StatefulIngestionSourceBase):
**{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