-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-29787][SQL] Move methods add/subtract/negate from CalendarInterval to IntervalUtils #26423
Conversation
…val to IntervalUtils
@@ -203,6 +204,30 @@ class IntervalUtilsSuite extends SparkFunSuite { | |||
assert(!isNegative("-1 year 380 days", 31)) | |||
} | |||
|
|||
test("negate") { | |||
assert(negate(new CalendarInterval(1, 2, 3)) === new CalendarInterval(-1, -2, -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.
Remove the blank line
Test build #113374 has finished for PR 26423 at commit
|
LGTM, can you fix the conflicts? |
didn't notice that. a second. |
Test build #113377 has finished for PR 26423 at commit
|
Test build #113382 has finished for PR 26423 at commit
|
retest this please |
Test build #113412 has finished for PR 26423 at commit
|
thanks, merging to master! |
What changes were proposed in this pull request?
Move method add/subtract/negate from CalendarInterval to IntervalUtils
Why are the changes needed?
#26410 (comment) suggested here
Does this PR introduce any user-facing change?
no
How was this patch tested?
add uts and move some