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

Damien Carol updated HIVE-10771:
--------------------------------
    Description: 
To replicate:
{code:SQL}
CREATE TABLE separator_test 
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES ("separatorChar" = "|","quoteChar"="\"","escapeChar"="
") 
STORED AS TEXTFILE
AS
SELECT * FROM sample_07;
{code}
Then 
{noformat}
hadoop fs -cat /user/hive/warehouse/separator_test/*
"53-3032","Truck drivers, heavy and tractor-trailer","1693590","37560"
"53-3033","Truck drivers, light or delivery services","922900","28820"
"53-3041","Taxi drivers and chauffeurs","165590","22740"
{noformat}
The separator is till  "*,*" not  "*|*"  as specified.

  was:
To replicate:
CREATE TABLE separator_test 
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES ("separatorChar" = "|","quoteChar"="\"","escapeChar"="
") 
STORED AS TEXTFILE
AS
SELECT * FROM sample_07;
Then hadoop fs -cat /user/hive/warehouse/separator_test/*
"53-3032","Truck drivers, heavy and tractor-trailer","1693590","37560"
"53-3033","Truck drivers, light or delivery services","922900","28820"
"53-3041","Taxi drivers and chauffeurs","165590","22740"
The separator is till ",", not "|" as specified.


> "separatorChar" has no effect in "CREATE TABLE AS SELECT" statement
> -------------------------------------------------------------------
>
>                 Key: HIVE-10771
>                 URL: https://issues.apache.org/jira/browse/HIVE-10771
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>            Reporter: Yongzhi Chen
>            Assignee: Yongzhi Chen
>             Fix For: 1.3.0
>
>         Attachments: HIVE-10771.1.patch
>
>
> To replicate:
> {code:SQL}
> CREATE TABLE separator_test 
> ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
> WITH SERDEPROPERTIES ("separatorChar" = "|","quoteChar"="\"","escapeChar"="
> ") 
> STORED AS TEXTFILE
> AS
> SELECT * FROM sample_07;
> {code}
> Then 
> {noformat}
> hadoop fs -cat /user/hive/warehouse/separator_test/*
> "53-3032","Truck drivers, heavy and tractor-trailer","1693590","37560"
> "53-3033","Truck drivers, light or delivery services","922900","28820"
> "53-3041","Taxi drivers and chauffeurs","165590","22740"
> {noformat}
> The separator is till  "*,*" not  "*|*"  as specified.



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

Reply via email to