You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When overwrite=True and auto_create_table=True, the new table created by write_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 of CREATE 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.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Please provide the option to copy grants when overwriting table using write_pandas
SNOW-1658882: Please provide the option to copy grants when overwriting table using write_pandas
Sep 10, 2024
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.
The text was updated successfully, but these errors were encountered: