rangadi commented on code in PR #46125:
URL: https://github.com/apache/spark/pull/46125#discussion_r1572995277
##########
python/pyspark/sql/connect/streaming/worker/foreach_batch_worker.py:
##########
@@ -63,8 +63,13 @@ def main(infile: IO, outfile: IO) -> None:
spark = spark_connect_session
# TODO(SPARK-44461): Enable Process Isolation
+ try:
Review Comment:
Can this try be around teh while loop below? I.e
```
try:
func = worker.read_command(pickle_ser, infile)
write_int...
while True:
..
except
```
Note that currently, errors around `read_long()` are not handled well.
--
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]