You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2017/03/14 09:23:41 UTC
[jira] [Resolved] (SPARK-11331) Kryo serializer broken with
StringTypes
[ https://issues.apache.org/jira/browse/SPARK-11331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-11331.
----------------------------------
Resolution: Duplicate
> Kryo serializer broken with StringTypes
> ---------------------------------------
>
> Key: SPARK-11331
> URL: https://issues.apache.org/jira/browse/SPARK-11331
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 1.5.1
> Environment: Spark shell both in standalone cluster or local mode
> Reporter: Saif Addin Ellafi
>
> When using --driver-java-options "-Dspark.serializer=org.apache.spark.serializer.KryoSerializer"
> data looks like this when both loading from JSON or PARQUET. Have not tried other data sources.
> res1: org.apache.spark.sql.Row = [325767905,1,4000,0,1,3933.34,3901.64,3901.64,0.0,0,0,0,0,0,0.0,0,0.0,0.0,4000,0.0,?,??,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,68.299999952,0.0,0.0,20,200311,0,0.0,1,1,4000,1,100.0,100.0,0.0,0.0, Card NoRw ????????,614,1,200506,01????????,????,???,???????,0,0,0.0,68.299999952,100.0]
> question marks appear on StringType data
> val cols = data.dtypes.filter(_._2 == "StringType").map(_._1)
> data.select("id", cols:_*).first
> res13: org.apache.spark.sql.Row = [325767905,?,??, Card NoRw ????????,01????????,????,???,???????]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org