drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chun Chang (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DRILL-3393) Quotes not being recognized in tab delimited (tsv) files
Date Thu, 17 Sep 2015 00:59:45 GMT

     [ https://issues.apache.org/jira/browse/DRILL-3393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chun Chang closed DRILL-3393.
-----------------------------
    Assignee: Chun Chang  (was: Steven Phillips)

verified fix. 

{noformat}
here is the data:

no quote        "with quote"

0: jdbc:drill:schema=dfs.drillTestDirDropTabl> select columns[0], columns[1] from dfs.tmp.`drill-3718.tsv`;
+-----------+-------------+
|  EXPR$0   |   EXPR$1    |
+-----------+-------------+
| null      | null        |
| no quote  | with quote  |
| null      | null        |
+-----------+-------------+
{noformat}

> Quotes not being recognized in tab delimited (tsv) files
> --------------------------------------------------------
>
>                 Key: DRILL-3393
>                 URL: https://issues.apache.org/jira/browse/DRILL-3393
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Storage - Text & CSV
>    Affects Versions: 1.0.0
>            Reporter: Chi Lang
>            Assignee: Chun Chang
>            Priority: Critical
>             Fix For: 1.2.0
>
>         Attachments: DRILL-3393.patch, fail.tsv
>
>
> Drill doesn't seem to recognise quotes in tsv, while working fine for csv files.
> For example, given the following files
> test.tsv
> -------
> foobar	bar
> "aa"	"bc"
> -------
> test.csv
> ----------
> foobar,bar
> "aa","bc"
> ----------
> I get these results:
> 0: jdbc:drill:zk=local> select columns[0], columns[1] from dfs.`test.csv`;
> +---------+---------+
> | EXPR$0  | EXPR$1  |
> +---------+---------+
> | foobar  | bar     |
> | aa      | bc      |
> +---------+---------+
> 2 rows selected (0.259 seconds)
> 0: jdbc:drill:zk=local> select columns[0], columns[1] from dfs.`test.tsv`;
> +----------+---------+
> |  EXPR$0  | EXPR$1  |
> +----------+---------+
> | foobar   | bar     |
> | aa"	"bc  | null    |
> +----------+---------+
> 2 rows selected (0.122 seconds)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message