MaxGekk commented on a change in pull request #35302:
URL: https://github.com/apache/spark/pull/35302#discussion_r792342516
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/InterpretedUnsafeProjection.scala
##########
@@ -254,7 +254,7 @@ object InterpretedUnsafeProjection {
(_, _) => {}
case _ =>
- throw QueryExecutionErrors.dataTypeUnsupportedError(dt)
+ throw QueryExecutionErrors.dataTypeUnsupportedForWriterFuncError(dt)
Review comment:
How about to not handle the default case at all (I mean remove it). The
compiler should output a warning if we forget to handle a type, and we.will get
a match error exception in the case too.
--
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]