anchovYu commented on code in PR #36241:
URL: https://github.com/apache/spark/pull/36241#discussion_r851880514
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala:
##########
@@ -112,10 +112,12 @@ object QueryExecutionErrors extends QueryErrorsBase {
}
def invalidInputSyntaxForNumericError(
+ to: AbstractDataType,
Review Comment:
I don't know whether there is a better way than this `AbstractDataType` and
corresponding `tosimpleString` method, considering the `DecimalType`. Since the
cast fails, we can't get a concrete `DecimalType` class with scale and
precision, so I just can't use the `DataType` here.
--
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]