itholic commented on code in PR #43444:
URL: https://github.com/apache/spark/pull/43444#discussion_r1366357398
##########
python/pyspark/errors/exceptions/base.py:
##########
@@ -31,6 +32,7 @@ def __init__(
message: Optional[str] = None,
error_class: Optional[str] = None,
message_parameters: Optional[Dict[str, str]] = None,
+ data: Optional[List[Row]] = None,
Review Comment:
BTW, just realized that `mypy` doesn't throw an error when we pass a `list`
to the `Tuple` or a `tuple` to the `List`. Just FYI 🤔
##########
python/pyspark/errors/exceptions/base.py:
##########
@@ -31,6 +32,7 @@ def __init__(
message: Optional[str] = None,
error_class: Optional[str] = None,
message_parameters: Optional[Dict[str, str]] = None,
+ data: Optional[List[Row]] = None,
Review Comment:
BTW, just realized that `mypy` doesn't throw an error when we pass a `list`
to the `Tuple` or a `tuple` to the `List`. Just FYI 🤔
--
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]