You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by HyukjinKwon <gi...@git.apache.org> on 2017/05/03 10:28:44 UTC

[GitHub] spark pull request #17842: [MINOR][SQL] Fix the test title from =!= to <=>, ...

GitHub user HyukjinKwon opened a pull request:

    https://github.com/apache/spark/pull/17842

    [MINOR][SQL] Fix the test title from =!= to <=>, remove a duplicated test and add a test for =!=

    ## What changes were proposed in this pull request?
    
    This PR proposes three things as below:
    
    - This test looks not testing `<=>` and identical with the test above, `===`. So, it removes the test.
    
      ```diff
      -   test("<=>") {
      -     checkAnswer(
      -      testData2.filter($"a" === 1),
      -      testData2.collect().toSeq.filter(r => r.getInt(0) == 1))
      -
      -    checkAnswer(
      -      testData2.filter($"a" === $"b"),
      -      testData2.collect().toSeq.filter(r => r.getInt(0) == r.getInt(1)))
      -   }
      ```
    
    
    - Replace the test title from `=!=` to `<=>`. It looks the test actually testing `<=>`.
    
      ```diff
      +  private lazy val nullData = Seq(
      +    (Some(1), Some(1)), (Some(1), Some(2)), (Some(1), None), (None, None)).toDF("a", "b")
      +
      ...
      -  test("=!=") {
      +  test("<=>") {
      -    val nullData = spark.createDataFrame(sparkContext.parallelize(
      -      Row(1, 1) ::
      -      Row(1, 2) ::
      -      Row(1, null) ::
      -      Row(null, null) :: Nil),
      -      StructType(Seq(StructField("a", IntegerType), StructField("b", IntegerType))))
      -
             checkAnswer(
      ```
    
    - Add the tests for `=!=` which looks not existing.
      
      ```diff
      +  test("=!=") {
      +    checkAnswer(
      +      nullData.filter($"b" =!= 1),
      +      Row(1, 2) :: Nil)
      +
      +    checkAnswer(nullData.filter($"b" =!= null), Nil)
      +
      +    checkAnswer(
      +      nullData.filter($"a" =!= $"b"),
      +      Row(1, 2) :: Nil)
      +  }
      ```
    
    ## How was this patch tested?
    
    Manually running the tests.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HyukjinKwon/spark minor-test-fix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/17842.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17842
    
----
commit c164b88b36c6beabd91a9493fb3ac9643a2db400
Author: hyukjinkwon <gu...@gmail.com>
Date:   2017-05-02T07:53:39Z

    Test deduplication and add a test for `=!=`.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #17842: [MINOR][SQL] Fix the test title from =!= to <=>, ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/17842


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17842: [MINOR][SQL] Fix the test title from =!= to <=>, remove ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/17842
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17842: [MINOR][SQL] Fix the test title from =!= to <=>, remove ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/17842
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/76413/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17842: [MINOR][SQL] Fix the test title from =!= to <=>, remove ...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the issue:

    https://github.com/apache/spark/pull/17842
  
    Merging in master/branch-2.2.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17842: [MINOR][SQL] Fix the test title from =!= to <=>, remove ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17842
  
    **[Test build #76413 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/76413/testReport)** for PR 17842 at commit [`c164b88`](https://github.com/apache/spark/commit/c164b88b36c6beabd91a9493fb3ac9643a2db400).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17842: [MINOR][SQL] Fix the test title from =!= to <=>, remove ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/17842
  
    **[Test build #76413 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/76413/testReport)** for PR 17842 at commit [`c164b88`](https://github.com/apache/spark/commit/c164b88b36c6beabd91a9493fb3ac9643a2db400).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #17842: [MINOR][SQL] Fix the test title from =!= to <=>, remove ...

Posted by HyukjinKwon <gi...@git.apache.org>.
Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/17842
  
    cc @rxin, it looks the last related change was made by you. Could you check if it makes sense please?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org