-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support s3_data_dir and s3_data_naming #39
Conversation
FYI @jessedobbelaere |
For me, the location is coming up as dbt-athena-community 1.3.3 athena:
outputs:
dev:
aws_profile_name: somethingfake
database: awsdatacatalog
region_name: us-west-2
s3_data_dir: s3://my_bucket/dbt/
s3_data_naming: schema_table
s3_staging_dir: s3://my_staging_bucket/dbt/
schema: my_schema
type: athena
work_group: somethingfake
threads: 8
num_retries: 1 |
@VDFaller there was no change on that section of the code between 1.3.2 and 1.3.3. I just tested with one of my testing models and seems working fine for me. |
None. Just default. |
What
This PR brings back #4 originally covered in Tomme/dbt-athena#50
Compare to the original PR, this PR changes add the possibility to setup the s3_data_naming on the model config and fallback to the global target value. Also this change is not introducing breaking changes, as we should set data dir is optional and use the default staging dir as fallback.
I refactored also iceberg implementation to have the same beahvior, as before we created another way to store the data, this is more uniformed.
To test I setup this in my profile:
Models used for testing
uuid
the default table location was
s3://my_bucket/a700e6ba-508b-4037-aa11-52239c3b6931
schema_table
the default table location was
s3://my_bucket/my_schema/my_model
schema_table_unique
the default table location was
s3://my_bucket/my_schema/example/96e19633-6794-40fc-bbc6-28d99d43ab44
external_location
the s3_data_naming is ignored and then the external location is used.
I also tested to don't set the s3_data_dir, and by default the staging_dir is used.