-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add an asset block which can contain structured data for use in the compilation context #1318
Comments
Hypothetically, it would be really cool to give dbt the powers, terraform-style, to document and run all manner of admin/config operations on the warehouse. The ultimate appeal is the ability to define verbs in macro (functions for operations or hooks), and to define the nouns that serve as verb substrate/subject in an asset block. Core Functionality
+ Operations
|
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days. |
Feature
Feature description
A good idea, via @jtcohen6. dbt should support the specification of assets -- free-form json, csv, yml, and sql files, in dbt projects. Depending on the supplied filetype in the asset block, dbt should return an object of type str/dict/list/etc when the asset is referenced.
Use cases:
Example usage:
Later:
Prior art:
dbt_project.yml
file can be unwieldy for large assets, like static SQL ddl, mapping json data, etc.Who will this benefit?
This is the biggest question IMO. It appears that there is utility in providing a mechanism for augmenting the dbt compilation context, but I think we'd need to supply clearer use cases before we can prioritize this feature. What is the benefit of an asset over a macro for the SQL ddl use case? And what are some real-world use cases for structured data, like JSON or CSV assets? How would folks use these?
The text was updated successfully, but these errors were encountered: