zhengruifeng commented on code in PR #51831:
URL: https://github.com/apache/spark/pull/51831#discussion_r2374745820
##########
python/pyspark/errors/error-conditions.json:
##########
@@ -1369,6 +1369,11 @@
"Value for `<arg_name>` must be between <lower_bound> and <upper_bound>
(inclusive), got <actual>"
]
},
+ "WRONG_NUM_ARGS": {
Review Comment:
it seems we can reuse error class `CANNOT_SET_TOGETHER`:
```
raise PySparkValueError(
errorClass="CANNOT_SET_TOGETHER",
messageParameters={"arg_list":
"years|months|days|hours|mins|secs and date|time"},
)
```
--
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]