kunwp1 commented on code in PR #9677:
URL: https://github.com/apache/texera/pull/9677#discussion_r4683444899


##########
amber/src/main/python/pytexera/storage/large_binary_output_stream.py:
##########
@@ -129,7 +130,7 @@ def _raise_if_upload_failed(self) -> None:
         with self._lock:
             exception = self._upload_exception
         if exception is not None:
-            raise IOError(f"Background upload failed: {exception}") from 
exception
+            raise OSError(f"Background upload failed: {exception}") from 
exception

Review Comment:
   Nit: the docstrings at lines 147, 214 and 221 still say `IOError`. It's the 
same class, but the file now names it both ways.



##########
workflow-compiling-service/src/test/resources/python/py_op_driver.py:
##########
@@ -314,8 +304,7 @@ def _jsonify(value: Any, attr_type: AttributeType) -> Any:
         # standalone path pickles the same object without one, so strip it and
         # both sides carry the same payload.
         raw = value
-        if raw.startswith(_CAST_PICKLE_MARKER):
-            raw = raw[len(_CAST_PICKLE_MARKER) :]
+        raw = raw.removeprefix(_CAST_PICKLE_MARKER)

Review Comment:
   Nit: with the slice gone, the alias isn't needed:
   ```python
           return 
base64.b64encode(value.removeprefix(_CAST_PICKLE_MARKER)).decode("ascii")
   ```



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

Reply via email to