Github user pierre-borckmans commented on the pull request:

    https://github.com/apache/spark/pull/10429#issuecomment-166562978
  
    @rxin This PR incidentally also fixes another issue. Accessing a null 
element in an array of IntegerType erroneously returned 0:
    ```
    scala> val df = 
sc.parallelize(Seq((Seq("val1",null,"val2"),Seq(Some(1),None,Some(2))))).toDF("s","i")
    df: org.apache.spark.sql.DataFrame = [s: array<string>, i: array<int>]
    scala> df.selectExpr("i[1]").collect()(0)
    res1: org.apache.spark.sql.Row = [0]
    ```
    It now correctly returns null.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to