You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/04/12 20:51:12 UTC
[jira] [Commented] (SPARK-6412) Add Char support in dataTypes.
[ https://issues.apache.org/jira/browse/SPARK-6412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14491645#comment-14491645 ]
Michael Armbrust commented on SPARK-6412:
-----------------------------------------
Can you describe your use case more. Adding datatypes is pretty expensive as they touch *many* parts of the system. Could we just convert chars into StringType internally?
> Add Char support in dataTypes.
> ------------------------------
>
> Key: SPARK-6412
> URL: https://issues.apache.org/jira/browse/SPARK-6412
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Chen Song
>
> We can't get the schema of case class PrimitiveData, because of ScalaReflection.schemaFor and dataTYpes doesn't support CharType.
> case class PrimitiveData(
> charField: Char, // Can't get the char schema info
> intField: Int,
> longField: Long,
> doubleField: Double,
> floatField: Float,
> shortField: Short,
> byteField: Byte,
> booleanField: Boolean)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org