You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by lw-lin <gi...@git.apache.org> on 2016/07/20 07:30:09 UTC

[GitHub] spark pull request #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

GitHub user lw-lin opened a pull request:

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

    [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/Windows...

    ## Problem
    
    OS X's `sed` doesn't understand `\t` at all, so this `script` test would fail:
    ```
    == Results ==
    !== Correct Answer - 2 ==   == Spark Answer - 2 ==
    ![x1_y1]                    [x1]
    ![x2_y2]                    [x2]
    ```
    
    In addition, this `script` test would also fail on systems like Windows where we couldn't be able to invoke `bash` or `echo ... | awk ...`.
    
    ## What changes were proposed in this pull request?
    This patch 
    - switches from `sed` to `awk` for replacing `\t` purpose
    - adds command guards so that the `script` test would pass on systems like Windows
    
    ## How was this patch tested?
    
    - Jenkins
    - Manually verified tests pass on OS X
    


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

    $ git pull https://github.com/lw-lin/spark osx-sed

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

    https://github.com/apache/spark/pull/14280.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 #14280
    
----
commit 35773defdcc1ed0a4f6044e805fab69cf5323df6
Author: Liwei Lin <lw...@gmail.com>
Date:   2016-07-20T06:56:12Z

    `sed` -> `awk`

commit dc39c98a8c624ee35f8df1fb824a85f7c4c3741e
Author: Liwei Lin <lw...@gmail.com>
Date:   2016-07-20T07:17:53Z

    Add `testCommandAvailable` gards

----


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    OK merged to master/2.0 to match related changes


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62586/
    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 pull request #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

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

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


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    **[Test build #62587 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/62587/consoleFull)** for PR 14280 at commit [`f12b43f`](https://github.com/apache/spark/commit/f12b43f62c1e1bead146beca35172b0b4ea1d052).


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

Posted by lw-lin <gi...@git.apache.org>.
Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14280#discussion_r71971600
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala ---
    @@ -64,14 +67,17 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
       import spark.implicits._
     
       test("script") {
    -    val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    -    df.createOrReplaceTempView("script_table")
    -    val query1 = sql(
    -      """
    -        |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    -        |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    -        |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    -    checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    if (testCommandAvailable("bash") && testCommandAvailable("echo | sed")) {
    +      val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    +      df.createOrReplaceTempView("script_table")
    +      val query1 = sql(
    +        """
    +          |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    +          |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    +          |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    +      checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    }
    +    // else skip this test
    --- End diff --
    
    The only change here was the if check; i.e.
    
    if (testCommandAvailable("bash") && testCommandAvailable("echo | sed")) {
      // everything left unchanged
    }
    // else skip this test


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    It appears that the existing `sed` command works if you write `sed $'...'` on both Linux and OS X. Is that easier?


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

Posted by lw-lin <gi...@git.apache.org>.
Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14280#discussion_r71480336
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala ---
    @@ -64,14 +67,19 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
       import spark.implicits._
     
       test("script") {
    -    val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    -    df.createOrReplaceTempView("script_table")
    -    val query1 = sql(
    -      """
    -        |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    -        |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    -        |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    -    checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    if (testCommandAvailable("bash") && testCommandAvailable("echo | awk '{print $0}'")) {
    +      val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    +      df.createOrReplaceTempView("script_table")
    +      val query1 = sql(
    +        """
    +          |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    +          |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    +          |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    +      checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    }
    +    else {
    +      assert(true)
    +    }
    --- End diff --
    
    removed; thanks!


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    `sed $'...'` works on both Linux & OS X! So let's switch back to `sed`. @srowen thanks a lot for the `$`!


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    **[Test build #62588 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/62588/consoleFull)** for PR 14280 at commit [`372ef5c`](https://github.com/apache/spark/commit/372ef5cb29c24ed301dc5b0c8f40c9fd8dd3e389).
     * 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 pull request #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

Posted by adrian-wang <gi...@git.apache.org>.
Github user adrian-wang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14280#discussion_r71477889
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala ---
    @@ -64,14 +67,19 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
       import spark.implicits._
     
       test("script") {
    -    val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    -    df.createOrReplaceTempView("script_table")
    -    val query1 = sql(
    -      """
    -        |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    -        |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    -        |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    -    checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    if (testCommandAvailable("bash") && testCommandAvailable("echo | awk '{print $0}'")) {
    +      val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    +      df.createOrReplaceTempView("script_table")
    +      val query1 = sql(
    +        """
    +          |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    +          |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    +          |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    +      checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    }
    +    else {
    --- End diff --
    
    Nit: unnecessary line break.


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62587/
    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 pull request #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

Posted by lw-lin <gi...@git.apache.org>.
Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14280#discussion_r71477795
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala ---
    @@ -64,14 +67,19 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
       import spark.implicits._
     
       test("script") {
    -    val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    -    df.createOrReplaceTempView("script_table")
    -    val query1 = sql(
    -      """
    -        |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    -        |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    -        |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    -    checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    if (testCommandAvailable("bash") && testCommandAvailable("echo | awk '{print $0}'")) {
    +      val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    +      df.createOrReplaceTempView("script_table")
    +      val query1 = sql(
    +        """
    +          |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    +          |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    +          |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    +      checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    }
    +    else {
    +      assert(true)
    +    }
    --- End diff --
    
    The only change here was the `if` check; i.e.
    ```scala
    if (testCommandAvailable("bash") && testCommandAvailable("echo | awk '{print $0}'")) {
      // everything left unchanged
    }
    else {
      assert(true)
    }
    ```


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

Posted by srowen <gi...@git.apache.org>.
Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14280#discussion_r71479585
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala ---
    @@ -64,14 +67,19 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
       import spark.implicits._
     
       test("script") {
    -    val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    -    df.createOrReplaceTempView("script_table")
    -    val query1 = sql(
    -      """
    -        |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    -        |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    -        |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    -    checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    if (testCommandAvailable("bash") && testCommandAvailable("echo | awk '{print $0}'")) {
    +      val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    +      df.createOrReplaceTempView("script_table")
    +      val query1 = sql(
    +        """
    +          |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    +          |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    +          |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    +      checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    }
    +    else {
    +      assert(true)
    +    }
    --- End diff --
    
    assert(true) is redundant


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    **[Test build #62588 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/62588/consoleFull)** for PR 14280 at commit [`372ef5c`](https://github.com/apache/spark/commit/372ef5cb29c24ed301dc5b0c8f40c9fd8dd3e389).


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    **[Test build #62586 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/62586/consoleFull)** for PR 14280 at commit [`dc39c98`](https://github.com/apache/spark/commit/dc39c98a8c624ee35f8df1fb824a85f7c4c3741e).


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62588/
    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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    LGTM


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    **[Test build #62586 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/62586/consoleFull)** for PR 14280 at commit [`dc39c98`](https://github.com/apache/spark/commit/dc39c98a8c624ee35f8df1fb824a85f7c4c3741e).
     * 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 pull request #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` o...

Posted by lw-lin <gi...@git.apache.org>.
Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14280#discussion_r71480386
  
    --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala ---
    @@ -64,14 +67,19 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
       import spark.implicits._
     
       test("script") {
    -    val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    -    df.createOrReplaceTempView("script_table")
    -    val query1 = sql(
    -      """
    -        |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    -        |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    -        |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    -    checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    if (testCommandAvailable("bash") && testCommandAvailable("echo | awk '{print $0}'")) {
    +      val df = Seq(("x1", "y1", "z1"), ("x2", "y2", "z2")).toDF("c1", "c2", "c3")
    +      df.createOrReplaceTempView("script_table")
    +      val query1 = sql(
    +        """
    +          |SELECT col1 FROM (from(SELECT c1, c2, c3 FROM script_table) tempt_table
    +          |REDUCE c1, c2, c3 USING 'bash src/test/resources/test_script.sh' AS
    +          |(col1 STRING, col2 STRING)) script_test_table""".stripMargin)
    +      checkAnswer(query1, Row("x1_y1") :: Row("x2_y2") :: Nil)
    +    }
    +    else {
    --- End diff --
    
    removed; thanks!


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    Maybe this is ready to go?


---
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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    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 #14280: [SPARK-16515][SQL][FOLLOW-UP] Fix test `script` on OS X/...

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

    https://github.com/apache/spark/pull/14280
  
    **[Test build #62587 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/62587/consoleFull)** for PR 14280 at commit [`f12b43f`](https://github.com/apache/spark/commit/f12b43f62c1e1bead146beca35172b0b4ea1d052).
     * 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