Github user gatorsmile commented on the pull request:

    https://github.com/apache/spark/pull/9815#issuecomment-158787727
  
    Sorry, I think it is a test case issue. 
    ```
    testData = Seq((1, 2), (2, 2), (3, 4), (null.asInstanceOf[Int], 
5)).toDF("a", "b")
    ```
    
    Scala automatically converts null.asInstanceOf[Int] into zero. Thus, Spark 
treats it as zero. Never mind. I tried another way, like 
null.asInstanceOf[java.lang.Integer]. It works fine. 


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to