You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ruifeng Zheng (Jira)" <ji...@apache.org> on 2026/08/20 23:54:00 UTC

[jira] [Resolved] (SPARK-58906) Make PySpark vector and matrix UDTs singletons

     [ https://issues.apache.org/jira/browse/SPARK-58906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruifeng Zheng resolved SPARK-58906.
-----------------------------------
    Fix Version/s: 4.4.0
       Resolution: Fixed

Issue resolved by pull request 58166
[https://github.com/apache/spark/pull/58166]

> Make PySpark vector and matrix UDTs singletons
> ----------------------------------------------
>
>                 Key: SPARK-58906
>                 URL: https://issues.apache.org/jira/browse/SPARK-58906
>             Project: Spark
>          Issue Type: Sub-task
>          Components: ML, PySpark
>    Affects Versions: 5.0.0
>            Reporter: Ruifeng Zheng
>            Assignee: Ruifeng Zheng
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.4.0
>
>
> PySpark VectorUDT and MatrixUDT are stateless. Make the pyspark.ml.linalg and pyspark.mllib.linalg implementations use the existing DataTypeSingleton metaclass so repeated construction and schema JSON round-trips reuse the same Python UDT instances, matching the singleton direction in PR #57757.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org