You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2014/11/06 21:54:34 UTC
[jira] [Commented] (FLINK-1223) Allow value escaping in CSV files
[ https://issues.apache.org/jira/browse/FLINK-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200898#comment-14200898 ]
ASF GitHub Bot commented on FLINK-1223:
---------------------------------------
GitHub user jkirsch opened a pull request:
https://github.com/apache/incubator-flink/pull/187
[FLINK-1223] Allow value escaping in CSV files.
Strings can now contain " quoted characters
Skip trailing whitespace after quote
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jkirsch/incubator-flink csv
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-flink/pull/187.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #187
----
commit 1c03d901b47c8a7147fc5ed17ca36f5b1791af99
Author: Johannes <jk...@gmail.com>
Date: 2014-11-06T19:19:56Z
[FLINK-1223] Allow value escaping in CSV files.
Strings can now contain " quoted characters
Skip trailing whitespace after quote
----
> Allow value escaping in CSV files
> ---------------------------------
>
> Key: FLINK-1223
> URL: https://issues.apache.org/jira/browse/FLINK-1223
> Project: Flink
> Issue Type: Bug
> Components: Java API, Scala API
> Affects Versions: 0.8-incubating
> Reporter: Johannes
> Priority: Minor
>
> The CSV Parser currently does not interpret escaped values
> The example from here
> http://en.wikipedia.org/wiki/Comma-separated_values#Example
> {code}
> Year,Make,Model,Description,Price
> 1997,Ford,E350,"ac, abs, moon",3000.00
> 1999,Chevy,"Venture ""Extended Edition""","",4900.00
> {code}
> Does not work currently.
> Here escaping inside the string field generates an error.
> For reference
> An interesting post about the fallacies that could be encountered when parsing CSV files.
> [http://tburette.github.io/blog/2014/05/25/so-you-want-to-write-your-own-CSV-code/]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)