Open surpatean opened 1 month ago
Hello @surpatean ,
Thanks for raising the request; we are checking and will update you.
Regards, Sujan
Hello @surpatean ,
We are checking if its feasible to add such feature or not with write_pandas API
Meanwhile, the following workaround can be used
Regards, Sujan
Thank you @sfc-gh-sghosh
I also submitted a PR (based on the SQL copy grants
parameter), which I think solves it.
Hello @surpatean ,
Thanks for submitting the PR, we are reviewing it, will update.
Regards, Sujan
What is the current behavior?
When
overwrite=True
andauto_create_table=True
, the new table created bywrite_pandas
is created with fresh grants.What is the desired behavior?
I would like the option to copy the grants of the old table to the new table, similar to the optional
COPY GRANTS
parameter ofCREATE OR REPLACE TABLE
.How would this improve
snowflake-connector-python
?In some use-cases, it is preferred to have table-level grants, instead of db/schema-level future grants.
If the table needs to be overwritten with a new schema definition (e.g. for schema evolution), the option to maintain the permission profile of the table would be useful.
References and other background
I will follow-up with a PR.