-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
expression: handle builtin add_date/sub_date func overflow #11472
Conversation
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
hi @AndrewDi , thanks for contributing! |
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.
I think you should add the same code in function sub
to keep the behaviour of ADD_DATE
and SUB_DATE
same. @AndrewDi .
230654a
to
1a480aa
Compare
Codecov Report
@@ Coverage Diff @@
## master #11472 +/- ##
================================================
+ Coverage 81.3426% 81.3643% +0.0217%
================================================
Files 424 424
Lines 90913 90917 +4
================================================
+ Hits 73951 73974 +23
+ Misses 11639 11624 -15
+ Partials 5323 5319 -4 |
Codecov Report
@@ Coverage Diff @@
## master #11472 +/- ##
================================================
+ Coverage 81.3426% 81.3621% +0.0195%
================================================
Files 424 424
Lines 90913 90917 +4
================================================
+ Hits 73951 73972 +21
+ Misses 11639 11628 -11
+ Partials 5323 5317 -6 |
Please include some test cases that cover the function |
480d55f
to
2f2575b
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.
@AndrewDi PTAL
2f2575b
to
8bd087e
Compare
8bd087e
to
6a5db8e
Compare
/run-all-tests |
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
cherry pick to release-3.0 in PR #11476 |
cherry pick to release-2.1 in PR #11477 |
What problem does this PR solve?
Part of issue #11223, fix issue #11256
What is changed and how it works?
if Year less then 0 or greater then max uint16
then return null value
Check List
Tests