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

Fix wrong assert messages

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.4.8, 3.0.3, 3.2.0, 3.1.3, 3.3.0
    • Fix Version/s: 3.2.0, 3.1.3, 3.0.4
    • Component/s: ML
    • Labels:
      None

      Description

      require(numCols == mat.numCols, "The number of rows of the matrices in this sequence, " + "don't match!")
      

      Shall the error message be "The number of columns..."?

      This issue also appears in the open source spark:
      https://github.com/apache/spark/blob/master/mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala#L1266

        Attachments

          Activity

            People

            • Assignee:
              dc-heros dgd_contributor
              Reporter:
              sanket991 Sanket Reddy
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: