snowpark-python
snowpark-python copied to clipboard
SNOW-801653: To add COPY GRANTS in DataFrameWriter.save_as_table function
Please answer these questions before submitting your pull requests. Thanks!
-
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #SNOW-801653
-
Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify correctness of my new code
- [ ] I am adding new logging messages
- [ ] I am adding a new telemetry message
- [ ] I am adding new credentials
- [ ] I am adding a new dependency
-
Please describe how your code solves the related issue.
I added a copy_grants parameter in DataFrameWriter.save_as_table function. Then, we can define if we would like to copy_grants when we are overwriting a table. E.g:
df.write.mode("overwrite").save_as_table("table1", copy_grants=True)
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA