-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-7295][SQL] bitwise operations for DataFrame DSL #5867
Conversation
Merged build triggered. |
Merged build started. |
Test build #31669 has started for PR 5867 at commit |
Test build #31669 has finished for PR 5867 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
@@ -1214,6 +1214,12 @@ def __init__(self, jc): | |||
__contains__ = _bin_op("contains") | |||
__getitem__ = _bin_op("getItem") | |||
|
|||
# bitwise operators | |||
__bitwiseor__ = _bin_op("bitwiseOR") |
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 don't think this means anything in Python. You can just do
bitwiseOR = _bin_op("bitwiseOR")
bitwiseAND = _bin_op("bitwiseOR")
bitwiseXOR = _bin_op("bitwiseOR")
bitwiseNOT = _bin_op("bitwiseOR")
Merged build triggered. |
Merged build started. |
Test build #31682 has started for PR 5867 at commit |
Test build #31682 has finished for PR 5867 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
|
||
def bitwiseXOR(other: Any): Column = BitwiseXor(expr, lit(other).expr) | ||
|
||
def bitwiseNOT : Column = BitwiseNot(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.
sorry after looking at it more, I have a new round of comments.
we should move bitwiseNOT into functions.py
Merged build triggered. |
Merged build started. |
Merged build triggered. |
Merged build started. |
Test build #31709 has started for PR 5867 at commit |
Test build #31709 has finished for PR 5867 at commit
|
Merged build finished. Test FAILed. |
Test FAILed. |
Merged build triggered. |
Merged build started. |
Merged build finished. Test FAILed. |
Test build #32016 has started for PR 5867 at commit |
Test build #32016 has finished for PR 5867 at commit
|
Merged build finished. Test FAILed. |
Test FAILed. |
@rxin All tests are passed when I run them locally but in Jenkins build, one of them failed.
How can I fix this? |
@@ -438,6 +438,9 @@ object functions { | |||
*/ | |||
def upper(e: Column): Column = Upper(e.expr) | |||
|
|||
|
|||
def bitwiseNOT(e: Column) : Column = BitwiseNot(e.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.
Add scaladoc, and remove the space before :
@jkbradley is there some non-determinism with the Python test? |
It's been removed and is being investigated: [https://issues.apache.org/jira/browse/SPARK-7432] |
Jenkins test this please |
Merged build triggered. |
Merged build started. |
Test build #32078 has started for PR 5867 at commit |
Merged build triggered. |
Merged build started. |
Test build #32081 has started for PR 5867 at commit |
Test build #32078 has finished for PR 5867 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
Thanks. I'm merging this in. |
Author: Shiti <[email protected]> Closes #5867 from Shiti/spark-7295 and squashes the following commits: 71a9913 [Shiti] implementation for bitwise and,or, not and xor on Column with tests and docs (cherry picked from commit fa8fddf) Signed-off-by: Reynold Xin <[email protected]>
Test build #32081 timed out for PR 5867 at commit |
Merged build finished. Test FAILed. |
Test FAILed. |
Author: Shiti <[email protected]> Closes apache#5867 from Shiti/spark-7295 and squashes the following commits: 71a9913 [Shiti] implementation for bitwise and,or, not and xor on Column with tests and docs
Author: Shiti <[email protected]> Closes apache#5867 from Shiti/spark-7295 and squashes the following commits: 71a9913 [Shiti] implementation for bitwise and,or, not and xor on Column with tests and docs
Author: Shiti <[email protected]> Closes apache#5867 from Shiti/spark-7295 and squashes the following commits: 71a9913 [Shiti] implementation for bitwise and,or, not and xor on Column with tests and docs
No description provided.