-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-8217] [SQL] math function log2 #6718
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
|
Test build #34494 has finished for PR 6718 at commit
|
|
Test build #34497 has finished for PR 6718 at commit
|
|
Test build #34502 has finished for PR 6718 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.
why upper case Base?
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.
because we use upper case Base for log10 also, I just try to keep consistence.
should I modify it to lower case also?
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.
yes change them all. not sure why they were "Base" before.
|
Can you also add to functions.py? |
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 we name the argument a?
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.
This is also following log/log10/log1p. Change them all?
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.
yes change them all. i'm not sure why e was used.
|
Please also add unit tests to DataFrameFunctionSuite (like what @chenghao-intel did in his length pr) |
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.
=> the given column
|
And also add |
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.
actually after thinking about it more ... this breaks scala source compatibility. Do you mind switching back to "e" and just use "e" for everything? It might've meant "expression".
For the new ones, I'd use "expr".
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.
ok...
|
LGTM other than one test. |
|
Test build #34563 has finished for PR 6718 at commit
|
|
Test build #34565 has finished for PR 6718 at commit
|
|
Test build #34568 has finished for PR 6718 at commit
|
|
Test build #34578 has finished for PR 6718 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.
log2 -- not log
|
LGTM. |
|
Test build #34651 has finished for PR 6718 at commit
|
|
Thanks -- I manually resolved the conflict and merged this. |
Author: Daoyuan Wang <[email protected]> This patch had conflicts when merged, resolved by Committer: Reynold Xin <[email protected]> Closes apache#6718 from adrian-wang/udflog2 and squashes the following commits: 3909f48 [Daoyuan Wang] math function: log2
No description provided.