You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Peter Vary (JIRA)" <ji...@apache.org> on 2017/05/09 16:58:04 UTC

[jira] [Updated] (HIVE-16625) Extra '\0' characters in the output, when SeparatedValuesOutputFormat is used and the quoting is disabled

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

Peter Vary updated HIVE-16625:
------------------------------
    Attachment: HIVE-16625.patch

When unquotedCsvPreference is generated use SelectiveCsvEncoder without any column to encode.
Add a qtest to test the case


> Extra '\0' characters in the output, when SeparatedValuesOutputFormat is used and the quoting is disabled
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-16625
>                 URL: https://issues.apache.org/jira/browse/HIVE-16625
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline, Testing Infrastructure
>    Affects Versions: 3.0.0
>            Reporter: Peter Vary
>            Assignee: Peter Vary
>         Attachments: HIVE-16625.patch
>
>
> If the output format is using {{SeparatedValuesOutputFormat}}, and the quoting is disabled (by default is disabled), and the value of the cell contains the separator character, then the the output is "quoted" with '\0' characters.
> To reproduce:
> {code}
> create table quotes(s string);
> insert into quotes values('a\ta');
> !set outputFormat tsv2
> select * from quotes;
> {code}
> The result is:
> {code}
> quotes.s
> ^@a	a^@
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)