Open ZhiZinTan-KSO opened 1 year ago
@zztan-ipg thanks for opening the issue! My first thought was "oh shoot, we totally missed that!", until I did some digging.
I'm going to confirm directly with some Dynamic Table folks at Snowflake, but my understanding based on the docs is that the COPY_GRANTS
parameter is not supported for a CREATE DYNAMIC TABLE
statement, where it is supported for other table types (e.g. CREATE TABLE)
Hey @dataders just wondering if you got the reply from Snowflake dynamic table folks yet?
thanks for the bump @zztan-ipg! I reached out to @sortalongo and team and the response was
COPY GRANTS
is on the release train, but its delayed and going through a behavior change process. Opt-in period should start mid Nov
my advice would be to reach out to your Snowflake reps and tell them you're interested!
Noted with thanks!
Relabeling this as a feature request since dbt is not behaving incorrectly. We will need to confirm that it works once its available within Snowflake
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 comment on the issue or else it will be closed in 7 days.
Is this a new bug in dbt-snowflake?
Current Behavior
with copy grant set in dbt_project.yml, when running
dbt build --select some_dynamic_table_model --full-refresh
, the grants that was given manually have been removed.Expected Behavior
with copy grant set in dbt_project.yml, the existing grants on the dynamic table should be remain as it is.
Steps To Reproduce
select * from {{ref('some_dynamic_table_model')}}
Additional Context
No response