Github user mn-mikke commented on a diff in the pull request:
https://github.com/apache/spark/pull/21620#discussion_r197730826
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
---
@@ -536,6 +536,11 @@ object TypeCoercion {
case None => c
}
+ case ArrayJoin(arr, d, nr) if
!ArrayType(StringType).acceptsType(arr.dataType) &&
+ ArrayType.acceptsType(arr.dataType) =>
+ val containsNull =
arr.dataType.asInstanceOf[ArrayType].containsNull
+ ArrayJoin(Cast(arr, ArrayType(StringType, containsNull)), d, nr)
--- End diff --
Ok, no problem. Let's support just arrays of primitive types for now.
Thanks!
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]