-
Notifications
You must be signed in to change notification settings - Fork 226
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 apply_grants call to materialization macros #381
Conversation
This is not complete. Needs to have create_or_replace_view macro in dbt-core updated. Waiting for adapter zone tests to pull in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great.
Note: there's not a spark specific seed materialization. There is a materialization/seed.sql, but it has macros like 'load_csv_rows' and 'create_csv_table'. |
Thanks for opening the draft PR! We will likely also need post-processing code to standardize the results returned by I believe that the default |
dbt/include/spark/macros/materializations/incremental/incremental.sql
Outdated
Show resolved
Hide resolved
#389 gets this assertion in the Update: BigQuery had the same problem, so I added a convenience method in dbt-labs/dbt-core@debc867: |
This reverts commit 8bd4145.
changed pointer, to main, and added changelog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…park#381) (#130) ### Description Ports in the upstream: Add apply_grants call to materialization macros (dbt-labs/dbt-spark#381). Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> Co-authored-by: Matthew McKnight <matthew.mcknight@dbtlabs.com> Co-authored-by: Gerda Shank <gerda@dbtlabs.com>
…park#381) (#130) ### Description Ports in the upstream: Add apply_grants call to materialization macros (dbt-labs/dbt-spark#381). Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> Co-authored-by: Matthew McKnight <matthew.mcknight@dbtlabs.com> Co-authored-by: Gerda Shank <gerda@dbtlabs.com>
* Add apply_grants call to materialization macros * add standardize_grants_dict * Working grant macros * Initialize tests in CI * Refactor to account for core macro changes. Passing tests * Fix code checks * Try default__reset_csv_table * Code checks * Revert "Try default__reset_csv_table" This reverts commit 8bd4145. * Account for refactor in dbt-labs/dbt-core@c763601 * Account for test changes in dbt-labs/dbt-core@debc867 * add changelog * Empty-Commit * rerun ci * rerun ci * readd a persist_docs call to snapshot.sql * fix whitespace Co-authored-by: Jeremy Cohen <jeremy@dbtlabs.com> Co-authored-by: Matthew McKnight <matthew.mcknight@dbtlabs.com>
resolves #366
Description
Add calls to 'apply_grants' to table, snapshot, and incremental materializations.
Checklist
CHANGELOG.md
and added information about my change to the "dbt-spark next" section.