spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Ash (JIRA)" <>
Subject [jira] [Commented] (SPARK-18359) Let user specify locale in CSV parsing
Date Wed, 11 Oct 2017 19:36:04 GMT


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}"locale", "value").csv("filefromeurope.csv")

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:
>             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

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

View raw message