Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

Shiti
Copy link
Contributor

@Shiti Shiti commented May 2, 2015

No description provided.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 2, 2015

Test build #31669 has started for PR 5867 at commit f08e595.

@Shiti Shiti changed the title [SPARK-7294][SQL] bitwise operations for DataFrame DSL [SPARK-7295][SQL] bitwise operations for DataFrame DSL May 2, 2015
@SparkQA
Copy link

SparkQA commented May 2, 2015

Test build #31669 has finished for PR 5867 at commit f08e595.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31669/
Test PASSed.

@@ -1214,6 +1214,12 @@ def __init__(self, jc):
__contains__ = _bin_op("contains")
__getitem__ = _bin_op("getItem")

# bitwise operators
__bitwiseor__ = _bin_op("bitwiseOR")
Copy link
Contributor

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")

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 3, 2015

Test build #31682 has started for PR 5867 at commit 72e26d1.

@SparkQA
Copy link

SparkQA commented May 3, 2015

Test build #31682 has finished for PR 5867 at commit 72e26d1.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31682/
Test PASSed.


def bitwiseXOR(other: Any): Column = BitwiseXor(expr, lit(other).expr)

def bitwiseNOT : Column = BitwiseNot(expr)
Copy link
Contributor

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

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 3, 2015

Test build #31709 has started for PR 5867 at commit 72126a6.

@SparkQA
Copy link

SparkQA commented May 3, 2015

Test build #31709 has finished for PR 5867 at commit 72126a6.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31709/
Test FAILed.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@SparkQA
Copy link

SparkQA commented May 6, 2015

Test build #32016 has started for PR 5867 at commit b4b3e67.

@SparkQA
Copy link

SparkQA commented May 6, 2015

Test build #32016 has finished for PR 5867 at commit b4b3e67.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32016/
Test FAILed.

@Shiti
Copy link
Contributor Author

Shiti commented May 7, 2015

@rxin All tests are passed when I run them locally but in Jenkins build, one of them failed.

File "pyspark/ml/tuning.py", line 108, in __main__.CrossValidator
Failed example:
    cvModel.transform(dataset).collect() == expected.collect()
Expected:
    True
Got:
    False

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)
Copy link
Contributor

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 :

@rxin
Copy link
Contributor

rxin commented May 7, 2015

@jkbradley is there some non-determinism with the Python test?

@jkbradley
Copy link
Member

It's been removed and is being investigated: [https://issues.apache.org/jira/browse/SPARK-7432]

@jkbradley
Copy link
Member

Jenkins test this please

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32078 has started for PR 5867 at commit b4b3e67.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32081 has started for PR 5867 at commit 71a9913.

@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32078 has finished for PR 5867 at commit b4b3e67.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Merged build finished. Test PASSed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32078/
Test PASSed.

@rxin
Copy link
Contributor

rxin commented May 7, 2015

Thanks. I'm merging this in.

@asfgit asfgit closed this in fa8fddf May 7, 2015
asfgit pushed a commit that referenced this pull request May 7, 2015
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]>
@SparkQA
Copy link

SparkQA commented May 7, 2015

Test build #32081 timed out for PR 5867 at commit 71a9913 after a configured wait of 150m.

@AmplabJenkins
Copy link

Merged build finished. Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32081/
Test FAILed.

jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
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
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
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
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants