You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "fangchenli (via GitHub)" <gi...@apache.org> on 2026/02/14 22:32:06 UTC
Re: [PR] [Spark-55462] Support VariantType in convert_numpy [spark]
fangchenli commented on code in PR #54312:
URL: https://github.com/apache/spark/pull/54312#discussion_r2808031027
##########
python/pyspark/sql/conversion.py:
##########
@@ -1489,13 +1490,20 @@ def convert_numpy(
if v is not None
else None
)
+ elif isinstance(spark_type, VariantType):
+ series = arr.to_pandas(date_as_object=True)
+ series = series.apply(
+ cast(
Review Comment:
The cast is only for bypassing mypy compliant.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org