Skip to content

Commit

Permalink
expose catalog_name to the sql alchemy uri that is passed into pyathena
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiafi committed Aug 2, 2022
1 parent 823ae97 commit 2ebd4f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions metadata-ingestion/src/datahub/ingestion/source/sql/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class AthenaConfig(SQLAlchemyConfig):
work_group: str = pydantic.Field(
description="The name of your Amazon Athena Workgroups"
)
catalog_name: str = pydantic.Field(
default="awsdatacatalog", description="Athena Catalog Name"
)

include_views = False # not supported for Athena

Expand All @@ -61,6 +64,7 @@ def get_sql_alchemy_url(self):
uri_opts={
"s3_staging_dir": self.s3_staging_dir,
"work_group": self.work_group,
"catalog_name": self.catalog_name,
},
)

Expand Down

0 comments on commit 2ebd4f3

Please sign in to comment.