You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andrew Ash (JIRA)" <ji...@apache.org> on 2017/10/11 19:36:04 UTC

[jira] [Commented] (SPARK-18359) Let user specify locale in CSV parsing

    [ https://issues.apache.org/jira/browse/SPARK-18359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16200831#comment-16200831 ] 

Andrew Ash commented on SPARK-18359:
------------------------------------

I agree with Sean -- using the submitting JVM's locale is insufficient.  Some users will want to join CSVs with different locales, and that doesn't offer a means of using different locales on different files.  This really should be specified on a per-csv basis, which is why I think the direction [~abicz] suggested supports this nicely:

{noformat}
spark.read.option("locale", "value").csv("filefromeurope.csv")
{noformat}

where the value is something we can use to get a {{java.util.Locale}}

Has anyone worked around this functionality gap in a useful way, or do we still need to work through these Locale issues in spark-csv?

> Let user specify locale in CSV parsing
> --------------------------------------
>
>                 Key: SPARK-18359
>                 URL: https://issues.apache.org/jira/browse/SPARK-18359
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0, 2.0.1
>            Reporter: yannick Radji
>
> On the DataFrameReader object there no CSV-specific option to set decimal delimiter on comma whereas dot like it use to be in France and Europe.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org