Skip to content

Commit

Permalink
allow athena in a kind of "read only" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Oct 14, 2024
1 parent c6f178b commit 1e78212
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions dlt/destinations/impl/athena/athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,12 @@ def __init__(
# verify if staging layout is valid for Athena
# this will raise if the table prefix is not properly defined
# we actually that {table_name} is first, no {schema_name} is allowed
self.table_prefix_layout = path_utils.get_table_prefix_layout(
config.staging_config.layout,
supported_prefix_placeholders=[],
table_needs_own_folder=True,
)
if config.staging_config:
self.table_prefix_layout = path_utils.get_table_prefix_layout(
config.staging_config.layout,
supported_prefix_placeholders=[],
table_needs_own_folder=True,
)

sql_client = AthenaSQLClient(
config.normalize_dataset_name(schema),
Expand Down

0 comments on commit 1e78212

Please sign in to comment.