dongjoon-hyun commented on code in PR #56775:
URL: https://github.com/apache/spark/pull/56775#discussion_r3483438211
##########
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala:
##########
@@ -1144,6 +1144,11 @@ private[hive] object HiveClientImpl extends Logging {
CatalystSqlParser.parseDataType(typeStr)
} catch {
case e: ParseException =>
+ // Hive's union type (uniontype<...>) is not supported by Spark SQL
and makes the parser
+ // fail with a generic message. Detect it and report a clearer error
(SPARK-21529).
+ if (hc.getType.toLowerCase(Locale.ROOT).contains("uniontype<")) {
+ throw QueryExecutionErrors.unsupportedHiveTypeError(hc.getType,
hc.getName)
+ }
Review Comment:
Could you clarify what was the previous error message, @AgenticSpark ?
> Today the failure message comes from the parser path and does not clearly
identify that the Hive union type is unsupported.
--
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]