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 07:41:40 UTC

[jira] [Commented] (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 commented on SPARK-12997:
--------------------------------------

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