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

Unhandled case in VectorAssembler#transform

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.5.2
    • 1.6.0
    • ML
    • None

    Description

      I noticed that there is an unhandled case in the transform method of VectorAssembler if one of the input columns doesn't have one of the supported type DoubleType, NumericType, BooleanType or VectorUDT.

      So, if you try to transform a column of StringType you get a cryptic "scala.MatchError: StringType".

      Will submit a PR shortly

      Attachments

        Activity

          People

            BenFradet Benjamin Fradet
            BenFradet Benjamin Fradet
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: