GitHub user BenFradet opened a pull request:

    https://github.com/apache/spark/pull/9885

    [SPARK-11902]  [ML] Unhandled case in VectorAssembler#transform

    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".
    
    This PR aims to fix this, throwing a SparkException when dealing with an 
unknown column type.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/BenFradet/spark SPARK-11902

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9885.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9885
    
----
commit 1dde1087fd6e02534724b0d4df560686eebcbcc8
Author: BenFradet <[email protected]>
Date:   2015-11-21T13:52:31Z

    throwing exception when dealing with an unhandled column type in 
VectorAssembler

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to