Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/22544#discussion_r220244473
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
---
@@ -971,9 +971,36 @@ object TypeCoercion {
case (ArrayType(fromType, true), ArrayType(toType: DataType,
false)) => null
case (ArrayType(fromType, false), ArrayType(toType: DataType,
false))
- if !Cast.forceNullable(fromType, toType) =>
+ if !Cast.forceNullable(fromType, toType) =>
implicitCast(fromType, toType).map(ArrayType(_, false)).orNull
+ // Implicit cast between Map types.
--- End diff --
Do we have enough test for this new implicit cast rules?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]