drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From F Méthot (JIRA) <j...@apache.org>
Subject [jira] [Commented] (DRILL-3178) csv reader should allow newlines inside quotes
Date Sat, 17 Sep 2016 02:03:20 GMT

    [ https://issues.apache.org/jira/browse/DRILL-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15497971#comment-15497971

F Méthot commented on DRILL-3178:

attached file drill-3178/patch is a simple fix for handling crlf within quoted value.
Most of the test fail on my dev env, I don't have credential to push my local branch to the
server and to have it build and test there.

> csv reader should allow newlines inside quotes 
> -----------------------------------------------
>                 Key: DRILL-3178
>                 URL: https://issues.apache.org/jira/browse/DRILL-3178
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Storage - Text & CSV
>    Affects Versions: 1.0.0
>         Environment: Ubuntu Trusty 14.04.2 LTS
>            Reporter: Neal McBurnett
>            Assignee: F Méthot
>             Fix For: Future
>         Attachments: drill-3178.patch
> When reading a csv file which contains newlines within quoted strings, e.g. via
>     select * from dfs.`/tmp/q.csv`;
> Drill 1.0 says:
>     Error: SYSTEM ERROR: com.univocity.parsers.common.TextParsingException:  Error processing
input: Cannot use newline character within quoted string
> But many tools produce csv files with newlines in quoted strings.  Drill should be able
to handle them.
> Workaround: the csvquote program (https://github.com/dbro/csvquote) can encode embedded
commas and newlines, and even decode them later if desired.

This message was sent by Atlassian JIRA

View raw message