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

Retag RDD to tallSkinnyQR of RowMatrix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • MLlib
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: