You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by tdas <gi...@git.apache.org> on 2015/02/02 07:03:18 UTC

[GitHub] spark pull request: [SPARK-5154] [PySpark] [Streaming] Kafka strea...

Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/3715#discussion_r23908186
  
    --- Diff: core/src/test/scala/org/apache/spark/api/python/PythonRDDSuite.scala ---
    @@ -23,11 +23,21 @@ import org.scalatest.FunSuite
     
     class PythonRDDSuite extends FunSuite {
     
    -    test("Writing large strings to the worker") {
    -        val input: List[String] = List("a"*100000)
    -        val buffer = new DataOutputStream(new ByteArrayOutputStream)
    -        PythonRDD.writeIteratorToStream(input.iterator, buffer)
    -    }
    +  test("Writing large strings to the worker") {
    +    val input: List[String] = List("a"*100000)
    +    val buffer = new DataOutputStream(new ByteArrayOutputStream)
    +    PythonRDD.writeIteratorToStream(input.iterator, buffer)
    +  }
     
    -}
    +  test("Handle nulls gracefully") {
    +    val buffer = new DataOutputStream(new ByteArrayOutputStream)
    +    PythonRDD.writeIteratorToStream(List("a", null).iterator, buffer)
    +    PythonRDD.writeIteratorToStream(List(null, "a").iterator, buffer)
    +    PythonRDD.writeIteratorToStream(List("a".getBytes, null).iterator, buffer)
    +    PythonRDD.writeIteratorToStream(List(null, "a".getBytes).iterator, buffer)
     
    +    PythonRDD.writeIteratorToStream(List((null, null), ("a", null), (null, "b")).iterator, buffer)
    --- End diff --
    
    This issue still has not been addressed. There are not asserts to check whether the nulls can be read back properly.


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