MaxGekk commented on code in PR #48612:
URL: https://github.com/apache/spark/pull/48612#discussion_r1812071170
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -3521,6 +3521,12 @@
],
"sqlState" : "0A000"
},
+ "NEGATIVE_VALUES_IN_FREQUENCY_EXPRESSION" : {
+ "message" : [
+ "Negative values found in <frequencyExpression>"
Review Comment:
Let's help users in trouble shooting, and show the value:
```suggestion
"Found the negative value in <frequencyExpression>: <negativeValue>,
but expected a positive integral value."
```
just pass the value at:
```scala
} else if (frqLong < 0) {
throw
QueryExecutionErrors.negativeValueUnexpectedError(frequencyExpression)
}
```
--
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]