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

Fix error message in python 3.8 to_snowpark_pandas daily test #2173

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

sfc-gh-joshi
Copy link
Contributor

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

    Fixes SNOW-NNNNNNN

  2. 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.
  3. Please describe how your code solves the related issue.

Updates the error message to check if we're on python 3.8 before checking the pandas version.

@sfc-gh-joshi sfc-gh-joshi marked this pull request as ready for review August 27, 2024 20:32
@sfc-gh-joshi sfc-gh-joshi requested a review from a team as a code owner August 27, 2024 20:32
@sfc-gh-joshi sfc-gh-joshi 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 Aug 28, 2024
Copy link
Collaborator

@sfc-gh-evandenberg sfc-gh-evandenberg left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -47,9 +49,14 @@ def test_to_snowpark_pandas_no_modin(session, tmp_table_basic):
# TODO: SNOW-1552497: after upgrading to modin 0.30.1, Snowpark pandas will support
# all pandas 2.2.x, and this function call will raise a ModuleNotFoundError since
# modin is not installed.
match = (
"Snowpark pandas does not support Python 3.8. Please update to Python 3.9 or later"
if sys.version_info.major == 3 and sys.version_info.minor == 8
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we care about message for earlier versions of python, ie. < 3.8 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Within Snowpark pandas, we currently check if the version ==3.8. Older Python versions have been EOL'd anyway, and even if a user somehow manages to set up a Snowpark (pandas or non-pandas) environment, they would encounter an error when trying to import pandas anyway since pandas 2.1+ only works with Python 3.9 and later.

@sfc-gh-joshi sfc-gh-joshi merged commit 380ed37 into main Aug 28, 2024
67 of 91 checks passed
@sfc-gh-joshi sfc-gh-joshi deleted the joshi/fix-to_snowpark_pandas-daily branch August 28, 2024 00:59
@github-actions github-actions bot locked and limited conversation to collaborators Aug 28, 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants