itholic commented on code in PR #39979:
URL: https://github.com/apache/spark/pull/39979#discussion_r1108550903
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/util/ArrowUtils.scala:
##########
@@ -79,7 +79,7 @@ private[sql] object ArrowUtils {
case ArrowType.Null.INSTANCE => NullType
case yi: ArrowType.Interval if yi.getUnit == IntervalUnit.YEAR_MONTH =>
YearMonthIntervalType()
case di: ArrowType.Duration if di.getUnit == TimeUnit.MICROSECOND =>
DayTimeIntervalType()
- case _ => throw QueryExecutionErrors.unsupportedDataTypeError(dt.toString)
+ case _ => throw
QueryExecutionErrors.unsupportedDataTypeError(dt.asInstanceOf[DataType])
Review Comment:
Yeah, you're right.
I added test case and new error class `UNSUPPORTED_ARROWTYPE` to handle the
ArrowType separately since I think they're technically different objects.
--
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]