Skip to content

SNOW-2205814: Please provide the option to copy grants when using the create_or_replace_view() functionality #2409

@ChrisHastieIW

Description

@ChrisHastieIW

What is the current behavior?

When the functionality is used, the view is created with fresh grants.

What is the desired behavior?

I would like the option to copy the grants of the old view to the new view similar to the optional COPY GRANTS parameter of CREATE OR REPLACE VIEW.

How would this improve snowflake-connector-python?

In some use-cases, it is preferred to have view-level grants, instead of db/schema-level future grants.

If the view needs to be overwritten with a new schema definition (e.g. if an upstream object's metadata changes, or if the view's logic is changing), the option to maintain the permission profile of the view would be useful.

References and other background

No response

Metadata

Metadata

Assignees

Labels

featurestatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions