-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Overflow prevention when handling date values #16812
Overflow prevention when handling date values #16812
Conversation
32ee21d
to
8f297cb
Compare
Added a test based on similar scenario mentioned here #16709 (comment). |
❌ Gradle check result for 8f297cb: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
8f297cb
to
476ed76
Compare
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, @prudhvigodithi ! The change makes sense to me. Good catch!
❌ Gradle check result for 476ed76: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
476ed76
to
79cc71a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16812 +/- ##
=========================================
Coverage 72.05% 72.05%
+ Complexity 65183 65140 -43
=========================================
Files 5318 5318
Lines 303993 304003 +10
Branches 43990 43992 +2
=========================================
+ Hits 219028 219043 +15
+ Misses 67046 66996 -50
- Partials 17919 17964 +45 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Prudhvi Godithi <[email protected]>
79cc71a
to
0d6882e
Compare
Signed-off-by: Prudhvi Godithi <[email protected]> (cherry picked from commit 5ba909a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 5ba909a) Signed-off-by: Prudhvi Godithi <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: Prudhvi Godithi <[email protected]>
Signed-off-by: Prudhvi Godithi <[email protected]> Signed-off-by: Mingshi Liu <[email protected]>
Description
Coming from #16709 (comment) added a precaution to handle extreme date values during sorting to prevent
arithmetic_exception: long overflow
.Related Issues
#16709 and #5713.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.