Skip to content
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-1645085] Always use SCOPED temp table for snowpark pandas generated api #2285

Merged
merged 10 commits into from
Sep 19, 2024

Conversation

sfc-gh-yzou
Copy link
Collaborator

@sfc-gh-yzou sfc-gh-yzou commented Sep 12, 2024

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

SNOW-1645085
Always use scoped temp table for internally created temp table during read_snowflake.

  1. Fill out the following pre-review checklist:

    • 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.
  2. Please describe how your code solves the related issue.
    SCOPED temp object is feature introduced for snowpark internally created table, which is stored procedure scoped temp if the temp table is created within stored sproc, and session scoped if outside sored sproc.
    Native app only allows usage of scoped object, similar as snowpark python, we always uses scoped object when enabled

@sfc-gh-yzou sfc-gh-yzou added NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md NO-PANDAS-CHANGEDOC-UPDATES This PR does not update Snowpark pandas docs labels Sep 12, 2024
@sfc-gh-yzou sfc-gh-yzou force-pushed the yzou-SNOW-1645085-scoped-read-only branch 2 times, most recently from 81efaa7 to 378cf18 Compare September 16, 2024 22:57
@sfc-gh-yzou sfc-gh-yzou marked this pull request as ready for review September 17, 2024 17:55
@sfc-gh-yzou sfc-gh-yzou requested a review from a team as a code owner September 17, 2024 17:55
CHANGELOG.md Outdated
@@ -7,6 +7,7 @@
#### Improvements

- Improved `to_pandas` to persist the original timezone offset for TIMESTAMP_TZ type.
- Use SCOPED object for internal create temp tables.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe explain what this means here because it is not in open doc.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added more contents

src/snowflake/snowpark/modin/plugin/_internal/utils.py Outdated Show resolved Hide resolved
Copy link
Contributor

@sfc-gh-helmeleegy sfc-gh-helmeleegy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a few nits.

@sfc-gh-yzou sfc-gh-yzou force-pushed the yzou-SNOW-1645085-scoped-read-only branch from b9d767e to 7c89443 Compare September 17, 2024 19:26
@sfc-gh-yzou sfc-gh-yzou force-pushed the yzou-SNOW-1645085-scoped-read-only branch from a49af3d to 462ceb1 Compare September 19, 2024 17:49
@sfc-gh-yzou sfc-gh-yzou force-pushed the yzou-SNOW-1645085-scoped-read-only branch from 462ceb1 to edc51d6 Compare September 19, 2024 22:36
@sfc-gh-yzou sfc-gh-yzou merged commit 1847b4e into main Sep 19, 2024
35 checks passed
@sfc-gh-yzou sfc-gh-yzou deleted the yzou-SNOW-1645085-scoped-read-only branch September 19, 2024 23:57
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md NO-PANDAS-CHANGEDOC-UPDATES This PR does not update Snowpark pandas docs snowpark-pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants