You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (JIRA)" <ji...@apache.org> on 2018/10/29 16:44:00 UTC

[jira] [Updated] (IMPALA-7778) RCFile parser ignores escape characters

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

Tim Armstrong updated IMPALA-7778:
----------------------------------
    Labels: correctness  (was: )

> RCFile parser ignores escape characters
> ---------------------------------------
>
>                 Key: IMPALA-7778
>                 URL: https://issues.apache.org/jira/browse/IMPALA-7778
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 2.0, Impala 2.1, Impala 2.2, Impala 2.3.0, Impala 2.5.0, Impala 2.4.0, Impala 2.6.0, Impala 2.7.0, Impala 2.8.0, Impala 2.9.0, Impala 2.10.0, Impala 2.11.0, Impala 3.0, Impala 3.1.0
>            Reporter: Tim Armstrong
>            Priority: Major
>              Labels: correctness
>
> If an RCFile table has an escape character specified then it is ignored by Impala.
> {code}
> -- HIVE
> CREATE TABLE rc_escape ( s string)
> ROW FORMAT delimited fields terminated by ','  escaped by '\\'
> STORED AS RCFILE;
> insert into rc_escape select '\\"';
> select length(s), s from rc_escape;
> -- +-----+-----+
> -- | c0  |  s  |
> -- +-----+-----+
> -- | 2   | \"  |
> -- +-----+-----+
> -- IMPALA
> invalidate metadata rc_escape;
> select length(s), s from rc_escape;
> -- +-----------+-----+
> -- | length(s) | s   |
> -- +-----------+-----+
> -- | 3         | \\" |
> -- +-----------+-----+
> {code}
> I reproduced on my dev env with "beeline -n $USER -u jdbc:hive2://localhost:11050/default" for Hive and "impala-shell" for Impala.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org