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


##########
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:
   I updated the code based on your comment. Can you take a look?



##########
amber/src/main/python/core/models/schema/attribute_type.py:
##########
@@ -92,4 +97,5 @@ class AttributeType(Enum):
     bool: AttributeType.BOOL,
     bytes: AttributeType.BINARY,
     datetime.datetime: AttributeType.TIMESTAMP,
+    BigObject: AttributeType.BIG_OBJECT,

Review Comment:
   Updated.



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