Yicong-Huang commented on code in PR #4100:
URL: https://github.com/apache/texera/pull/4100#discussion_r2578711117


##########
amber/src/main/python/core/architecture/packaging/output_manager.py:
##########
@@ -259,10 +259,21 @@ def emit_state(
         )
 
     def tuple_to_frame(self, tuples: typing.List[Tuple]) -> DataFrame:
+        from core.models.schema.big_object import BigObject
+
         return DataFrame(
             frame=Table.from_pydict(
                 {
-                    name: [t[name] for t in tuples]
+                    name: [
+                        (
+                            # Convert BigObject objects to URI strings
+                            # for Arrow serialization
+                            t[name].uri
+                            if isinstance(t[name], BigObject)
+                            else t[name]
+                        )

Review Comment:
   Very intrusive. it should be handled In tuple, not `tuple_to_frame`. 



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