MaxGekk commented on code in PR #48384:
URL: https://github.com/apache/spark/pull/48384#discussion_r1793525927
##########
sql/api/src/main/scala/org/apache/spark/sql/errors/QueryParsingErrors.scala:
##########
@@ -516,8 +516,11 @@ private[sql] object QueryParsingErrors extends
DataTypeErrorsBase {
new ParseException(errorClass = "_LEGACY_ERROR_TEMP_0043", ctx)
}
- def intervalValueOutOfRangeError(ctx: IntervalContext): Throwable = {
- new ParseException(errorClass = "_LEGACY_ERROR_TEMP_0044", ctx)
+ def intervalValueOutOfRangeError(input: String, ctx: IntervalContext):
Throwable = {
+ new ParseException(
+ errorClass = "INVALID_INTERVAL_FORMAT.TIMEZONE_INTERVAL_OUT_OF_RANGE",
+ messageParameters = Map("input" -> input),
Review Comment:
You pass `input` but it is not used in the error format:
```
"The interval value must be in the range of [-18, +18] hours with second
precision."
```
Could you fix that.
--
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]