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

    https://github.com/apache/spark/pull/18930#discussion_r133117021
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/jsonExpressions.scala
 ---
    @@ -359,14 +359,14 @@ case class JsonTuple(children: Seq[Expression])
       @transient private lazy val jsonExpr: Expression = children.head
     
       // the fields to query are the remaining children
    -  @transient private lazy val fieldExpressions: Seq[Expression] = 
children.tail
    +  @transient private lazy val fieldExpressions: Array[Expression] = 
children.tail.toArray
     
       // eagerly evaluate any foldable the field names
    -  @transient private lazy val foldableFieldNames: IndexedSeq[String] = {
    +  @transient private lazy val foldableFieldNames: Array[Option[String]] = {
    --- End diff --
    
    I think we should continue to use `IndexedSeq` which is more efficient as 
`foldableFieldNames` will be used for many times.


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