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

[Bug] copy_grants configuration not being sent to DDL for seed tables (Snowflake) #1171

Open
2 tasks done
mklebantg opened this issue Aug 22, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working grants Issues related to dbt's grants functionality

Comments

@mklebantg
Copy link

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

  • existing privileges for seed table are erased when table is recreated
  • COPY GRANTS not found in the DDL

Expected Behavior

  • existing privileges should be restored when seed table is recreated from the dbt seed --full-refresh command
  • COPY GRANTS should be shown in the query logs when dbt executed the DDL

Steps To Reproduce

  1. In project.yml, add +copy_grants: true just below "seeds" through GitHub and merge into master branch
  2. run job in dbt cloud
    a.) job pulls from GitHub master branch
    b.) includes dbt seed --full-refresh command

project.yml seeds section:

seeds:
  +copy_grants: true
  <project name>:
    +persist_docs:
      relation: true
      columns: true

Relevant log output

No response

Environment

- dbt: cloud version 1.6
- DWH: Snowflake

Which database adapter are you using with dbt?

snowflake

Additional Context

No response

@mklebantg mklebantg added bug Something isn't working triage labels Aug 22, 2024
@dbeatty10 dbeatty10 transferred this issue from dbt-labs/dbt-core Aug 23, 2024
@dbeatty10
Copy link
Contributor

Possibly related: #1030

@mklebantg
Copy link
Author

Thanks, @dbeatty10. It looks like the workaround mentioned in #1030 might work.

@amychen1776 amychen1776 added grants Issues related to dbt's grants functionality and removed triage labels Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working grants Issues related to dbt's grants functionality
Projects
None yet
Development

No branches or pull requests

3 participants