LuciferYang commented on code in PR #44591:
URL: https://github.com/apache/spark/pull/44591#discussion_r1441455401


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala:
##########
@@ -1108,7 +1117,20 @@ case class MapObjects private(
             s"(${cls.getName}) ${classOf[mutable.ArraySeq[_]].getName}$$." +
               s"MODULE$$.make($builder.result());"
           )
-
+        case Some(cls) if classOf[immutable.ArraySeq[_]].isAssignableFrom(cls) 
=>
+          val tag = ctx.addReferenceObj("tag", elementClassTag())
+          val arraySeqClassName = classOf[immutable.ArraySeq[_]].getName

Review Comment:
   ```suggestion
             val builderClassName = classOf[mutable.ArrayBuilder[_]].getName
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to