xinrong-databricks commented on code in PR #36870:
URL: https://github.com/apache/spark/pull/36870#discussion_r899348755
##########
python/pyspark/sql/types.py:
##########
@@ -1213,6 +1218,26 @@ def _int_size_to_type(
_array_type_mappings["u"] = StringType
+def _from_numpy_type(nt: "np.dtype") -> Optional[DataType]:
Review Comment:
The mapping is defined following
[here](https://github.com/apache/spark/blob/master/python/pyspark/sql/pandas/types.py).
--
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]