-
Notifications
You must be signed in to change notification settings - Fork 116
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-1526571: Mock_iff not working if there are null values in the columns #1887
Comments
Hello @frederiksteiner , Thanks for raising the issue, we are checking, will update. Regards, |
Hello @frederiksteiner , I checked the code snippet, there is no issue with normal session, but I am not able to reproduce the exact issue with local testing. Using snowpark 3.19.0 and Python 3.11 FutureWarning: Mismatched null-like values None and nan found. In a future version, pandas equality-testing functions (e.g. assert_frame_equal) will consider these not-matching and raise. `Result Expected AssertionError: DataFrame.iloc[:, 4] (column name="MAX_LEAD_LAG") are different DataFrame.iloc[:, 4] (column name="MAX_LEAD_LAG") values are different (62.5 %) Could you check if any other configurations done with local_testing. Regards, |
Hello @frederiksteiner , Did you get a chance to check the previous update? Regards, |
Hey @sfc-gh-sghosh i did not yet since I do not have a laptop on me this week, but I will check on Monday and reply again. Sorry for the inconvenience. |
Hey @sfc-gh-sghosh
But the issue still stands |
thanks for the PR @frederiksteiner , I have merged my PR #1959 which is a duplicate of yours with some additional updates. sorry I couldn't merge yours due to our ci/cd limitations that external PR could not run tests. |
Alright, thanks for the new PR fixing this issue. I will close this issue then and also close my PR :) |
Please answer these questions before submitting your issue. Thanks!
What version of Python are you using?
3.11.8
What operating system and processor architecture are you using?
Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
What are the component versions in the environment (
pip freeze
)?snowflake-connector-python==3.11.0
snowflake-snowpark-python==1.19.0
Start local testing session and create
What did you expect to see?
That this should assert to True and not false.
The column "MAX_LEAD_LAG" is all Nones. The reason for it is that the lead and lag column are NullType columns afterwards and hence the max_lead_lag is full of Nones. Hence it is not really a problem of mock_iff but of the lead and lag testing method returning NullType columns.
The text was updated successfully, but these errors were encountered: