Skip to content
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

[Feature] Allow to define a different schema for tmp tables created during table materialization #662

Open
1 task done
pierrebzl opened this issue May 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@pierrebzl
Copy link
Contributor

pierrebzl commented May 28, 2024

Is this your first time submitting a feature request?

  • I have searched the existing issues, and I could not find an existing issue for this feature

Describe the feature

Following #613 and #659. I would like to extend this feature to any tmp table used during table materialization operations.

By defining a custom target temp_schema as config arg of the model, user will be able to isolate where tmp tables used for table materialization are being created. This will allow better access controle on those transient state tables.

Describe alternatives you've considered

No response

Who will this benefit?

User that materialize tables and desire to controle where temporary tables are going to be created. This schema control will allow to limit exposure of transient state tables to consumers.

Are you interested in contributing this feature?

Yes

Anything else?

According to #659 (comment), 3 main use cases need to be cover.
I believe this can be achieve by passing a temp_schema argument from the model configuration then to the api.Relation.create call here https://github.com/dbt-athena/dbt-athena/blob/v1.8.1/dbt/include/athena/macros/materializations/models/table/table.sql#L30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant