pingedbrain commented on PR #60215:
URL: https://github.com/apache/spark/pull/60215#issuecomment-6728264786

   Tried it locally and it works: the new tests pass, they fail without the 
fix, and
   `test_streaming` / `test_parity_streaming` are still green.
   
   A couple of small things:
   - This also changes the exception type, not just the message (`TypeError` 
instead of
     `ValueError`), so anyone catching `ValueError` would stop catching it. 
Might be worth
     a line in the description.
   - In `test_streaming.py`, `"hello"` now always raises `TypeError`, so 
catching both
     types would let the old behavior slip through. I'd catch just `TypeError`.
   
   Unrelated to this PR, but I poked at a few more values while testing and 
found some
   odd ones that could make a nice follow-up: `nan` and `inf` blow up with raw 
Python
   errors, and `awaitTermination(0.0001)` passes the check but rounds down to 0 
ms, so
   the JVM complains that the timeout "has to be positive".
   


-- 
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]

Reply via email to