Github user kiszk commented on the issue:

    https://github.com/apache/spark/pull/13704
  
    @cloud-fan I think ```value#63``` is ```UnsafeArrayData```.
    When I ran a DataFrame program, I got the following trees. Since operations 
for DataFrame access data in UnsafeArrayData, I think that ```LocalRelation``` 
and ```LocalTableScan``` keep an array as ```UnsafeArrayData```.
    
    ```
    val df = Seq(Array(1.0, 2.0, 3.0), Array(4.0, 5.0, 6.0)).toDF()
    val df2 = df.selectExpr("value[0] + value[1] + value[2]")
    df2.show
    df2.explain(true)
    
    == Analyzed Logical Plan ==
    ((value[0] + value[1]) + value[2]): double
    Project [((value#63[0] + value#63[1]) + value#63[2]) AS ((value[0] + 
value[1]) + value[2])#67]
    +- LocalRelation [value#63]
    
    == Optimized Logical Plan ==
    LocalRelation [((value[0] + value[1]) + value[2])#67]
    
    == Physical Plan ==
    LocalTableScan [((value[0] + value[1]) + value[2])#67]
    ```


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