spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-21483) Make org.apache.spark.ml.linalg.Vector bean-compliant so it can be used in Encoders.bean(Vector.class)
Date Thu, 20 Jul 2017 07:36:01 GMT

    [ https://issues.apache.org/jira/browse/SPARK-21483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094302#comment-16094302
] 

Sean Owen commented on SPARK-21483:
-----------------------------------

Hm, I thought there was an Encoder for Vector already. But there's a UDT for Vector of course.
I've used that to interact with Vectors in Spark SQL. Does that answer your use case?

> Make org.apache.spark.ml.linalg.Vector bean-compliant so it can be used in Encoders.bean(Vector.class)
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-21483
>                 URL: https://issues.apache.org/jira/browse/SPARK-21483
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 2.1.0
>            Reporter: Aseem Bansal
>            Priority: Minor
>
> The class org.apache.spark.ml.linalg.Vector is currently not bean-compliant as per spark.
> This makes it impossible to create a Vector via a dataset.tranform. It should be made
bean-compliant so it can be used.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message