xinrong-meng commented on code in PR #39835:
URL: https://github.com/apache/spark/pull/39835#discussion_r1092797190
##########
python/pyspark/sql/connect/types.py:
##########
@@ -184,6 +196,14 @@ def proto_schema_to_pyspark_data_type(schema:
pb2.DataType) -> DataType:
proto_schema_to_pyspark_data_type(schema.map.value_type),
schema.map.value_contains_null,
)
+ elif schema.HasField("udt"):
+ assert schema.udt.type == "udt"
+ json_value = {}
+ if schema.udt.HasField("python_class"):
+ json_value["pyClass"] = schema.udt.python_class
+ if schema.udt.HasField("python_class"):
Review Comment:
Shoud it be `serialized_python_class`?
--
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]