MaxGekk commented on code in PR #38772:
URL: https://github.com/apache/spark/pull/38772#discussion_r1035011450
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala:
##########
@@ -292,8 +292,8 @@ private[sql] object QueryParsingErrors extends
QueryErrorsBase {
def dataTypeUnsupportedError(dataType: String, ctx:
PrimitiveDataTypeContext): Throwable = {
new ParseException(
- errorClass = "_LEGACY_ERROR_TEMP_0030",
- messageParameters = Map("dataType" -> dataType),
+ errorClass = "UNSUPPORTED_DATATYPE",
+ messageParameters = Map("typeName" -> dataType),
Review Comment:
Need to quote the type even if it is incorrect. Please, call `toSQLType`.
--
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]