Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-16372

Retag RDD to tallSkinnyQR of RowMatrix

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: MLlib
    • Labels:
      None

      Description

      The following Java code because of type erasing:

      JavaRDD<Vector> rows = jsc.parallelize(...);
      RowMatrix mat = new RowMatrix(rows.rdd());
      QRDecomposition<RowMatrix, Matrix> result = mat.tallSkinnyQR(true);
      

      We should use retag to restore the type to prevent the following exception:

      java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.apache.spark.mllib.linalg.Vector;
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yinxusen Xusen Yin
                Reporter:
                yinxusen Xusen Yin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: