HyukjinKwon commented on code in PR #39387:
URL: https://github.com/apache/spark/pull/39387#discussion_r1069070394
##########
python/pyspark/sql/functions.py:
##########
@@ -172,7 +173,9 @@ def lit(col: Any) -> Column:
return col
elif isinstance(col, list):
if any(isinstance(c, Column) for c in col):
- raise ValueError("lit does not allow a column in a list")
+ raise PySparkException(
Review Comment:
I think we should have an error class like `class
PySparkValueError(ValueError, PySparkException)` but I guess you're doing this
in a followup
--
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]