spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "e89ff95a (JIRA)" <>
Subject [jira] [Created] (SPARK-19056) Row encoder should accept optional types
Date Tue, 03 Jan 2017 12:32:58 GMT
e89ff95a created SPARK-19056:

             Summary: Row encoder should accept optional types
                 Key: SPARK-19056
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.1.0, 2.0.0, 2.2.0
            Reporter: e89ff95a

Since Spark 2.0 Spark doesn't accept optional types with `RowEncoder`:


import org.apache.spark.sql.types._
import org.apache.spark.sql.Row

  StructType(Seq(StructField("v", StringType, true)))

// Caused by: java.lang.RuntimeException: Error while encoding: java.lang.RuntimeException:
scala.None$ is not a valid external type for schema of string


This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message