You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
In the create_table_as_with_partitions macro, currently NON-PARTIONED STAGING TABLE is being created in s3 path that is configured as part of s3_data_dir because here temporary is false. Now s3_tmp_table_dir is not even considered here.
Our setup is configured in such a way that target final tables are created in datalake AWS account and temporary tables are created in our AWS account and we have full access on our AWS account. In this scenario, temporary staging table which should be created in our AWS account is being created in datalake AWS account and we are unable to delete s3.
Expected Behavior
NON-PARTIONED STAGING TABLE should be created whatever is configured in s3_tmp_table_dir
Steps To Reproduce
Use following model file config as below and name it as local_test.sql
That's correct. Future issues and pull requests should be submitted against https://github.com/dbt-labs/dbt-adapters. We are midway through the process so some docs have not been updated to reflect the new process. We appreciate your patience as we work through that. In the meantime, I will transfer this issue over to that repo. Unfortunately I cannot do the same for your pull request.
Thanks @nicor88@mikealfare for moving my issue from other repo to here.
Ya that should be fine if PR can not be migrated, i will redo PR and submit once maintainers are ok in this repo.
Is this a new bug in dbt-athena?
Current Behavior
In the create_table_as_with_partitions macro, currently NON-PARTIONED STAGING TABLE is being created in s3 path that is configured as part of s3_data_dir because here temporary is false. Now s3_tmp_table_dir is not even considered here.
Our setup is configured in such a way that target final tables are created in datalake AWS account and temporary tables are created in our AWS account and we have full access on our AWS account. In this scenario, temporary staging table which should be created in our AWS account is being created in datalake AWS account and we are unable to delete s3.
Expected Behavior
NON-PARTIONED STAGING TABLE should be created whatever is configured in s3_tmp_table_dir
Steps To Reproduce
{{ config(
materialized='incremental',
incremental_strategy='merge',
partitioned_by=['dt'],
unique_key=['date_key'],
s3_data_dir='s3://sandeep-dagster/models/data/',
s3_tmp_table_dir='s3://sandeep-dagster/models/temporary/',
force_batch='true'
)
}}
SELECT 1 as id, '2022-01-01' AS dt
union all
SELECT 2, '2022-01-02' AS dt
dev:
type: athena
s3_data_dir: s3://datalake-bucket/models/
s3_tmp_table_dir: s3://my-bucket/models/
s3_data_naming: schema_table
region_name: us-east-2
database: awsdatacatalog
schema: test
work_group: test
Relevant log output
Environment
Additional Context
https://getdbt.slack.com/archives/C013MLFR7BQ/p1736430731459869
The text was updated successfully, but these errors were encountered: