-
Notifications
You must be signed in to change notification settings - Fork 142
SNOW-3027686: Fix spark string format for interval year-month #4062
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
base: main
Are you sure you want to change the base?
Conversation
b17f2fd to
c317f76
Compare
c317f76 to
2529121
Compare
|
Thanks for fixing the |
c7edbed to
c4da91b
Compare
sfc-gh-fhe
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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'
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per discussion offline:
- Python Connector's INTERVAL string format fix is not released yet, which would be released towards the end of month
- Snowpark Python's GH merge gate runs on a released version of Python Connector; expectedly, merge gate fails until next Connector release
- Upon Connector's next release, this PR would consider backward compatibility with Python Connector's dependency floor
c4da91b to
7144d33
Compare
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.
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.