-
Notifications
You must be signed in to change notification settings - Fork 117
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-1332287, SNOW-1332288: Fix flaky tests for skew & kurtosis functions #1409
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
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.
Thanks for the fix!
BTW, test_kurtosis seems still failing, maybe because your skew & kurtosis function changes are not in production yet? |
Yes, my changes will only be rolled out once 8.17 hits production (± later this week). So, this will fail until then - and the existing code will fail from then on. I could reduce the floating point threshold of the test further to ensure it passes on both pre and post 8.17. Unsure what's the best way forward is here. |
Can you merge this change it to branch test-v1.14.0 first, which is pulled in regression test. Once 8.17 is in, we merge again to main branch. |
96d44d5
to
bb653b6
Compare
It seems ready for merging? |
Fixes a flaky tests issue for tests involving skew/kurtosis correctness. We recently updated the computation for skew/kurtosis in XP to fix an issue that could lead to catastrophic loss of precision for very large tables. This fix causes skew/kurtosis to produce slightly different results, even for smaller cases. Since the failing tests compares the results of skew/kurtosis computation to expected constants absolutely, even tiny differences can cause a failure.
Fixes SNOW-1332287 & SNOW-1332288.
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Fixed by a) Updating the reference values for skew/kurtosis tests to match the new computation, b) Making sure that skew/kurtosis tests use approximate comparisons for correctness testing.