-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-8203] [SPARK-8204] [SQL] conditional function: least/greatest #6851
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
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.
we need to test this for all data types.
|
Don't forget to implement the |
|
Test build #35027 has finished for PR 6851 at commit
|
|
Test build #36926 has finished for PR 6851 at commit
|
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.
Nit:
/**
- Computes hex value for the given column.
*
|
Can you rebase the code? |
|
Test build #36999 has finished for PR 6851 at commit
|
|
Test build #37001 has finished for PR 6851 at commit
|
|
retest this please. |
|
Test build #37011 has finished for PR 6851 at commit
|
|
retest this please. |
|
Test build #37012 has finished for PR 6851 at commit
|
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.
Should we check that exprs have at least two columns? Also for others, it's good to fail fast.
|
Test build #37117 has finished for PR 6851 at commit
|
|
cc @davies |
|
LGTM, merging this into master, thanks! |
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.
note: this should be Seq[Expression], not vararg
chenghao-intel zhichao-li qiansl127 Author: Daoyuan Wang <[email protected]> Closes apache#6851 from adrian-wang/udflg and squashes the following commits: 0f1bff2 [Daoyuan Wang] address comments from davis 7a6bdbb [Daoyuan Wang] add '.' for hex() c1f6824 [Daoyuan Wang] add codegen, test for all types ec625b0 [Daoyuan Wang] conditional function: least/greatest
|
@adrian-wang probably a sync problem. It was evidently merged into master. You can just close it too. |
|
Test build #37132 has finished for PR 6851 at commit
|
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.
can you add scaladoc explaining the semantics of this expression? also do it for greatest.
|
@adrian-wang I found that happening quite a bit lately. Can you close the pr and just submit followup patches to address my comments? thanks. |
This is a follow up of remaining comments from #6851 Author: Daoyuan Wang <[email protected]> Closes #7387 from adrian-wang/udflgfollow and squashes the following commits: 6163e62 [Daoyuan Wang] add skipping null values e8c2e09 [Daoyuan Wang] use seq 8362966 [Daoyuan Wang] pr6851 follow up
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.
Why count against not NullType? any reason here?
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 the problem is that null literals are not converted into any non-null type when it happens in greatest.
@chenghao-intel @zhichao-li @qiansl127