snowpark-python icon indicating copy to clipboard operation
snowpark-python copied to clipboard

SNOW-801653: To add COPY GRANTS in DataFrameWriter.save_as_table function

Open calixtofelipe opened this issue 1 year ago • 2 comments

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes #SNOW-801653

  2. 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
  3. 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)

calixtofelipe avatar Apr 25 '23 22:04 calixtofelipe

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

github-actions[bot] avatar Apr 25 '23 22:04 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

calixtofelipe avatar Apr 25 '23 22:04 calixtofelipe