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

Unhandled case in VectorAssembler#transform

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.6.0
    • Component/s: ML
    • Labels:
      None
    • Target Version/s:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: