[
https://issues.apache.org/jira/browse/SPARK-11331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14980101#comment-14980101
]
Maciej BryĆski commented on SPARK-11331:
----------------------------------------
Same when using from PySpark.
> 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.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]