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-1489960, SNOW-1491199] Snowpark python API client-side changes for IR encoding to protobuf #2674

Merged
merged 22 commits into from
Nov 26, 2024

Conversation

sfc-gh-lspiegelberg
Copy link
Contributor

@sfc-gh-lspiegelberg sfc-gh-lspiegelberg commented Nov 25, 2024

Main commit for SNOW-1489960 bringing in changes to encode Snowpark python API to protobuf. A detailed commit history can be found in https://github.com/snowflakedb/snowpark-python/tree/ls-SNOW-1491199-merge-phase0-server-side.

  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.
    • I acknowledge that I have ensured my changes to be thread-safe. Follow the link for more information: Thread-safe Developer Guidelines
  2. Please describe how your code solves the related issue.

    Please write a short description of how your code change solves the related issue.

Co-authored-by: Arthur Zwiegincew [email protected]
Co-authored-by: Ovidiu Platon [email protected]
Co-authored-by: Hemit Shah [email protected]
Co-authored-by: Varnika Budati [email protected]
Co-authored-by: Eric Vandenberg [email protected]
Co-authored-by: Andong Zhan [email protected]

@github-actions github-actions bot added local testing Local Testing issues/PRs snowpark-pandas labels Nov 25, 2024
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg added the NO-PANDAS-CHANGEDOC-UPDATES This PR does not update Snowpark pandas docs label Nov 25, 2024
tox.ini Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
src/conftest.py Outdated Show resolved Hide resolved
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg changed the title [DRAFT] squash merge staging branch changes SNOW-1489960 Snowpark python API client-side changes for IR encoding to protobuf Nov 25, 2024
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg changed the title SNOW-1489960 Snowpark python API client-side changes for IR encoding to protobuf [SNOW-1489960, SNOW-1491199] Snowpark python API client-side changes for IR encoding to protobuf Nov 25, 2024
@sfc-gh-lspiegelberg
Copy link
Contributor Author

Add coverage to AST gates

      - name: Combine coverages
        run: python -m tox -e coverage --skip-missing-interpreters false
        shell: bash
        env:
          SNOWFLAKE_IS_PYTHON_RUNTIME_TEST: 1
      - uses: actions/upload-artifact@v4
        with:
          include-hidden-files: true
          name: coverage_${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
          path: |
            .tox/.coverage
            .tox/coverage.xml

Copy link
Contributor

@sfc-gh-jrose sfc-gh-jrose left a comment

Choose a reason for hiding this comment

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

Local testing section is looking mostly good to me.

src/snowflake/snowpark/mock/_plan.py Outdated Show resolved Hide resolved
src/snowflake/snowpark/mock/_plan.py Show resolved Hide resolved
src/snowflake/snowpark/mock/_plan.py Outdated Show resolved Hide resolved
src/snowflake/snowpark/mock/_snowflake_data_type.py Outdated Show resolved Hide resolved
src/snowflake/snowpark/mock/_snowflake_data_type.py Outdated Show resolved Hide resolved
Copy link
Contributor

@sfc-gh-jkew sfc-gh-jkew left a comment

Choose a reason for hiding this comment

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

I don't think this needs an intensive review - most of this will work itself out over the next day anyways.

@sfc-gh-lspiegelberg sfc-gh-lspiegelberg enabled auto-merge (squash) November 26, 2024 21:30
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg merged commit 9f9398b into main Nov 26, 2024
39 of 40 checks passed
@sfc-gh-lspiegelberg sfc-gh-lspiegelberg deleted the ls-SNOW-1491199-merge-phase0 branch November 26, 2024 21:52
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2024
Comment on lines +4 to +7
# Cloud workspace ssh is set up via ~/.local/share/sfcli/ssh_config (or simply provide your workspace ID)
# For this script to succeed with the DevVM, you need to configure the SSH devvm host according to
# https://snowflakecomputing.atlassian.net/wiki/spaces/EN/pages/3019015180/DevVM+Troubleshooting#Symptom:-Need-to-ssh-into-the-certified-DevVM
# I.e., add the following lines to ~/.ssh/config
Copy link
Contributor

Choose a reason for hiding this comment

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

can we move this info from here to a wiki directly? seems sensitive to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, which information should be redacted in your opinion?

Copy link
Contributor

Choose a reason for hiding this comment

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

ssh and sfcli related information

Copy link
Contributor

Choose a reason for hiding this comment

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

src/snowflake/snowpark/_internal/utils.py Show resolved Hide resolved
src/snowflake/snowpark/column.py Show resolved Hide resolved
Comment on lines +813 to +816

>>> import gc
>>>
>>> def f(session: Session) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

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

this is also unrealted to your change it seems

Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines +2949 to +2951
if isinstance(self._conn, MockServerConnection):
# TODO: Implement here write_pandas correctly.
success, ci_output = True, []
Copy link
Contributor

Choose a reason for hiding this comment

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

we already raise a not implemented error earlier. Does adding an assert here make more sense?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
local testing Local Testing issues/PRs 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.

7 participants