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 2016/01/27 08:00:46 UTC
[jira] [Comment Edited] (SPARK-12997) Use cast expression to
perform type cast in csv
[ https://issues.apache.org/jira/browse/SPARK-12997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15118745#comment-15118745 ]
Hyukjin Kwon edited comment on SPARK-12997 at 1/27/16 7:00 AM:
---------------------------------------------------------------
I would like to try this; however, how about just using {{CatalystTypeConverters.convertToScala()}}?
I mean like this, https://github.com/apache/spark/blob/b3ba1be3b77e42120145252b2730a56f1d55fd21/sql/hive/src/test/scala/org/apache/spark/sql/sources/SimpleTextRelation.scala#L115-L121.
was (Author: hyukjin.kwon):
I would like to try this; however, how about just using {{CatalystTypeConverters.convertToScala()}}?
> Use cast expression to perform type cast in csv
> -----------------------------------------------
>
> Key: SPARK-12997
> URL: https://issues.apache.org/jira/browse/SPARK-12997
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Reynold Xin
>
> CSVTypeCast.castTo should probably be removed, and just replace its usage with a projection that uses a sequence of Cast expressions.
--
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