[ 
https://issues.apache.org/jira/browse/SPARK-15211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Lian resolved SPARK-15211.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 12986
[https://github.com/apache/spark/pull/12986]

> Select features column from LibSVMRelation causes failure
> ---------------------------------------------------------
>
>                 Key: SPARK-15211
>                 URL: https://issues.apache.org/jira/browse/SPARK-15211
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Liang-Chi Hsieh
>            Assignee: Liang-Chi Hsieh
>             Fix For: 2.0.0
>
>
> It will cause failure when trying to load data with LibSVMRelation and select 
> features column:
> {code}
> val df2 = 
> spark.read.format("libsvm").load("data/mllib/sample_libsvm_data.txt")
> df: org.apache.spark.sql.DataFrame = [label: double, features: vector]
> scala> df2.select("features").show
> java.lang.RuntimeException: Error while decoding: scala.MatchError: 19 (of 
> class java.lang.Byte)
> createexternalrow(if (isnull(input[0, vector])) null else newInstance(class 
> org.apache.spark.mllib.linalg.VectorUDT).deserialize, 
> StructField(features,org.apache.spark.mllib.linalg.VectorUDT@f71b0bce,true))
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to