Skip to content

Conversation

@sfc-gh-nkumar
Copy link
Contributor

@sfc-gh-nkumar sfc-gh-nkumar commented Jan 28, 2026

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

    Fixes SNOW-3027686

Process year-month Intervals of format '+/-ddd' correctly.

  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
    • If adding any arguments to public Snowpark APIs or creating new public Snowpark APIs, I acknowledge that I have ensured my changes include AST support. Follow the link for more information: AST Support 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.

@sfc-gh-nkumar sfc-gh-nkumar requested review from a team as code owners January 28, 2026 02:16
@sfc-gh-nkumar sfc-gh-nkumar force-pushed the nkumar-SNOW-3027686-interval-format branch from b17f2fd to c317f76 Compare January 28, 2026 02:28
@sfc-gh-nkumar sfc-gh-nkumar added the NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md label Jan 28, 2026
@sfc-gh-nkumar sfc-gh-nkumar force-pushed the nkumar-SNOW-3027686-interval-format branch from c317f76 to 2529121 Compare January 28, 2026 02:29
@sfc-gh-mayliu
Copy link
Collaborator

Thanks for fixing the interval string format, here's the SnowparkPythonSnowflakePythonClientRegressRunner Jenkins job triggered from your branch: https://snowpark-python-001.jenkinsdev1.us-west-2.aws-dev.app.snowflake.com/job/SnowparkPythonSnowflakePythonClientRegressRunner/197893/consoleFull

@sfc-gh-nkumar sfc-gh-nkumar force-pushed the nkumar-SNOW-3027686-interval-format branch 3 times, most recently from c7edbed to c4da91b Compare January 28, 2026 19:58
Copy link
Contributor

@sfc-gh-fhe sfc-gh-fhe left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

assert test_result[0][0] == "+3-00"
assert test_result[0][1] == "+1-06"
assert test_result[0][2] == "+1-03"
assert test_result[0][0] == "+3" # interval year
Copy link
Collaborator

Choose a reason for hiding this comment

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

There might be a discrepancy for test results in different environment. While tests passed in Jenkins, GH actions failed with AssertionError: assert '+3-00' == '+3'

Copy link
Contributor

Choose a reason for hiding this comment

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

Jenkins uses the main branch of the Python connector rather than a release version. @sfc-gh-nkumar mentioned that this change may be responsible for this format difference.

Copy link
Collaborator

Choose a reason for hiding this comment

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

As per discussion offline:

  1. Python Connector's INTERVAL string format fix is not released yet, which would be released towards the end of month
  2. Snowpark Python's GH merge gate runs on a released version of Python Connector; expectedly, merge gate fails until next Connector release
  3. Upon Connector's next release, this PR would consider backward compatibility with Python Connector's dependency floor

@sfc-gh-nkumar sfc-gh-nkumar force-pushed the nkumar-SNOW-3027686-interval-format branch from c4da91b to 7144d33 Compare January 28, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO-CHANGELOG-UPDATES This pull request does not need to update CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants