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

Fix wrong assert messages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.4.8, 3.0.3, 3.2.0, 3.1.3, 3.3.0
    • 3.2.0, 3.1.3, 3.0.4
    • ML
    • 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

            dc-heros dgd_contributor
            sanket991 Sanket Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: