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

Reynold Xin updated SPARK-16372:
--------------------------------
    Fix Version/s:     (was: 2.0.1)
                       (was: 2.1.0)
                   2.0.0

> Retag RDD to tallSkinnyQR of RowMatrix
> --------------------------------------
>
>                 Key: SPARK-16372
>                 URL: https://issues.apache.org/jira/browse/SPARK-16372
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>            Reporter: Xusen Yin
>            Assignee: Xusen Yin
>             Fix For: 2.0.0
>
>
> The following Java code because of type erasing:
> {code}
> JavaRDD<Vector> rows = jsc.parallelize(...);
> RowMatrix mat = new RowMatrix(rows.rdd());
> QRDecomposition<RowMatrix, Matrix> result = mat.tallSkinnyQR(true);
> {code}
> We should use retag to restore the type to prevent the following exception:
> {code}
> java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to 
> [Lorg.apache.spark.mllib.linalg.Vector;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to