-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1569878: Creating Dynamic Table using Snowpark does not support all options #2019
Comments
Hello @padhia , Thanks for raising the issue. Regards, |
@padhia do you also need the option for |
That'd be certainly nice. Maybe a parameter that determines what happens if the table already exists. For example:
|
@padhia setting default to error will be a breaking change so I would not change that. But I'll consider add a |
…#2110) <!--- Please answer these questions before creating your pull request. Thanks! ---> 1. Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR. <!--- In this section, please add a Snowflake Jira issue number. Note that if a corresponding GitHub issue exists, you should still include the Snowflake Jira issue number. For example, for GitHub issue #1400, you should add "SNOW-1335071" here. ---> Fixes SNOW-1010216, #2019 2. Fill out the following pre-review checklist: - [x] I am adding a new automated test(s) to verify correctness of my new code - [ ] If this test skips Local Testing mode, I'm requesting review from @snowflakedb/local-testing - [ ] I am adding new logging messages - [ ] I am adding a new telemetry message - [ ] I am adding new credentials - [ ] I am adding a new dependency - [ ] If this is a new feature/behavior, I'm adding the Local Testing parity changes. 3. Please describe how your code solves the related issue. Adding support to specify the following: - REFERSH_MODE - INITIALIZE - CLUSTER BY - TRANSIENT - DATA_RETENTION_TIME_IN_DAYS - MAX_DATA_EXTENSION_TIME_IN_DAYS --------- Co-authored-by: Jamison Rose <[email protected]>
What is the current behavior?
DataFrame.create_or_replace_dynamic_table()
function doesn't support all parameters supported by the SQL versionWhat is the desired behavior?
Support options supported by the SQL version, specifically:
TRANSIENT
dynamic tablesREFRESH_MODE
INITIALIZE
CLUSTER BY
DATA_RETENTION_TIME_IN_DAYS
MAX_DATA_EXTENSION_TIME_IN_DAYS
How would this improve
snowflake-snowpark-python
?Allows Snowpark to complement/replace SQL as the sole language for DDLs. This is especially important for creating objects that support
SELECT
statements such as Dynamic tables and ViewsReferences, Other Background
https://docs.snowflake.com/en/sql-reference/sql/create-dynamic-table#syntax
The text was updated successfully, but these errors were encountered: