Github user maropu commented on a diff in the pull request:
https://github.com/apache/spark/pull/20024#discussion_r159572825
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
---
@@ -206,6 +208,11 @@ case class Cast(child: Expression, dataType: DataType,
timeZoneId: Option[String
case DateType => buildCast[Int](_, d =>
UTF8String.fromString(DateTimeUtils.dateToString(d)))
case TimestampType => buildCast[Long](_,
t => UTF8String.fromString(DateTimeUtils.timestampToString(t,
timeZone)))
+ case ar: ArrayType =>
+ buildCast[ArrayData](_, a => {
+ val arrayData = CatalystTypeConverters.convertToScala(a,
ar).asInstanceOf[WrappedArray[_]]
--- End diff --
ok, I'll update soon
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]