Github user ueshin commented on a diff in the pull request:
https://github.com/apache/spark/pull/21704#discussion_r201919906
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypeCreator.scala
---
@@ -48,7 +48,8 @@ case class CreateArray(children: Seq[Expression]) extends
Expression {
override def dataType: ArrayType = {
--- End diff --
Because the data type of the `CreateArray` itself is not the merged type
but `ArrayType`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]