You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "MaxGekk (via GitHub)" <gi...@apache.org> on 2024/10/09 14:25:30 UTC
Re: [PR] [SPARK-42838][SQL] Assign a name to the error class _LEGACY_ERROR_TEMP_2000 [spark]
MaxGekk commented on code in PR #48332:
URL: https://github.com/apache/spark/pull/48332#discussion_r1793627303
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -2832,6 +2838,11 @@
"expects an integer literal, but got <invalidValue>."
]
},
+ "INTERVAL_WITH_MICROSECONDS" : {
+ "message" : [
+ "Cannot add hours, minutes, seconds or microseconds to a date. If necessary set <ansiConfig> to \"false\" to bypass this error."
Review Comment:
It is not clear from the error message what's wrong. Let's rephrase it:
```suggestion
"Cannot add an interval because its microseconds part is 0. If necessary set <ansiConfig> to \"false\" to bypass this error."
```
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org