You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by viirya <gi...@git.apache.org> on 2015/12/31 05:04:54 UTC

[GitHub] spark pull request: [SPARK-11743][SQL] Move the test for arrayOfUD...

GitHub user viirya opened a pull request:

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

    [SPARK-11743][SQL] Move the test for arrayOfUDT

    A following pr for #9712. Move the test for arrayOfUDT.

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

    $ git pull https://github.com/viirya/spark-1 move-udt-test

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

    https://github.com/apache/spark/pull/10538.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 #10538
    
----
commit a3e639dd0c8d4c32fdb716591fdda0b06379e3b5
Author: Liang-Chi Hsieh <vi...@gmail.com>
Date:   2015-12-31T04:03:02Z

    Move the test for arrayOfUDT.

----


---
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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

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


---
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: [SPARK-11743][SQL] Move the test for arrayOfUD...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/10538#issuecomment-168125417
  
    LGTM, pending tests.


---
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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168136586
  
    **[Test build #48541 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48541/consoleFull)** for PR 10538 at commit [`8d10703`](https://github.com/apache/spark/commit/8d107037ce654b37193f95043411950a016aba14).
     * 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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168136626
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48541/
    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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168128239
  
    **[Test build #48539 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48539/consoleFull)** for PR 10538 at commit [`a3e639d`](https://github.com/apache/spark/commit/a3e639dd0c8d4c32fdb716591fdda0b06379e3b5).
     * 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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168126436
  
    **[Test build #48541 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48541/consoleFull)** for PR 10538 at commit [`8d10703`](https://github.com/apache/spark/commit/8d107037ce654b37193f95043411950a016aba14).


---
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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#discussion_r48646631
  
    --- Diff: sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/encoders/RowEncoderSuite.scala ---
    @@ -128,19 +128,8 @@ class RowEncoderSuite extends SparkFunSuite {
           .add("structOfMap", new StructType().add("map", mapOfString))
           .add("structOfArrayAndMap",
             new StructType().add("array", arrayOfString).add("map", mapOfString))
    -      .add("structOfUDT", structOfUDT))
    -
    -  test(s"encode/decode: arrayOfUDT") {
    -    val schema = new StructType()
    -      .add("arrayOfUDT", arrayOfUDT)
    -
    -    val encoder = RowEncoder(schema)
    -
    -    val input: Row = Row(Seq(new ExamplePoint(0.1, 0.2), new ExamplePoint(0.3, 0.4)))
    -    val row = encoder.toRow(input)
    -    val convertedBack = encoder.fromRow(row)
    -    assert(input.getSeq[ExamplePoint](0) == convertedBack.getSeq[ExamplePoint](0))
    -  }
    +      .add("structOfUDT", structOfUDT)
    +      .add("arrayOfUDT", arrayOfUDT))
    --- End diff --
    
    can we move it to the array section? i.e. the `encodeDecodeTest` that has a lot of `arrayOfxxx`


---
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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168136625
  
    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 pull request: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168128277
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/48539/
    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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168122797
  
    **[Test build #48539 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/48539/consoleFull)** for PR 10538 at commit [`a3e639d`](https://github.com/apache/spark/commit/a3e639dd0c8d4c32fdb716591fdda0b06379e3b5).


---
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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#discussion_r48646675
  
    --- Diff: sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/encoders/RowEncoderSuite.scala ---
    @@ -128,19 +128,8 @@ class RowEncoderSuite extends SparkFunSuite {
           .add("structOfMap", new StructType().add("map", mapOfString))
           .add("structOfArrayAndMap",
             new StructType().add("array", arrayOfString).add("map", mapOfString))
    -      .add("structOfUDT", structOfUDT))
    -
    -  test(s"encode/decode: arrayOfUDT") {
    -    val schema = new StructType()
    -      .add("arrayOfUDT", arrayOfUDT)
    -
    -    val encoder = RowEncoder(schema)
    -
    -    val input: Row = Row(Seq(new ExamplePoint(0.1, 0.2), new ExamplePoint(0.3, 0.4)))
    -    val row = encoder.toRow(input)
    -    val convertedBack = encoder.fromRow(row)
    -    assert(input.getSeq[ExamplePoint](0) == convertedBack.getSeq[ExamplePoint](0))
    -  }
    +      .add("structOfUDT", structOfUDT)
    +      .add("arrayOfUDT", arrayOfUDT))
    --- End diff --
    
    ok. it is more proper.


---
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: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168128276
  
    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 pull request: [SPARK-11743][SQL] Move the test for arrayOfUD...

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

    https://github.com/apache/spark/pull/10538#issuecomment-168290965
  
    Thanks - I've merged this.



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