Saif Addin Ellafi created SPARK-11331:
-----------------------------------------

             Summary: 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 types.

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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to