[ 
https://issues.apache.org/jira/browse/IMPALA-11266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17649275#comment-17649275
 ] 

Quanlong Huang commented on IMPALA-11266:
-----------------------------------------

[~hqbhoho123] Thanks for reporting this! However, I can't reproduce this 
locally. Everything works fine for me:
{noformat}
[localhost:21050] default> CREATE TABLE default.test_0425 (name STRING ,name2 
STRING ,name3 String) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' WITH 
SERDEPROPERTIES ('colelction.delim'=';', 'field.delim'='\t', 
'mapkey.delim'=',', 'serialization.format'='\t') STORED AS TEXTFILE ;
Query: CREATE TABLE default.test_0425 (name STRING ,name2 STRING ,name3 String) 
ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' WITH SERDEPROPERTIES 
('colelction.delim'=';', 'field.delim'='\t', 'mapkey.delim'=',', 
'serialization.format'='\t') STORED AS TEXTFILE
+-------------------------+
| summary                 |
+-------------------------+
| Table has been created. |
+-------------------------+
Fetched 1 row(s) in 0.59s
[localhost:21050] default> insert into test_0425 values ("1;1;1;1",'2','3');
Query: insert into test_0425 values ("1;1;1;1",'2','3')
Query submitted at: 2022-12-19 19:15:01 (Coordinator: 
http://quanlong-OptiPlex-BJ:25000)
Query progress can be monitored at: 
http://quanlong-OptiPlex-BJ:25000/query_plan?query_id=3041d2426a5a76d2:f2cd4ba900000000
Modified 1 row(s) in 3.61s
[localhost:21050] default> select * from test_0425;
Query: select * from test_0425
Query submitted at: 2022-12-19 19:15:17 (Coordinator: 
http://quanlong-OptiPlex-BJ:25000)
Query progress can be monitored at: 
http://quanlong-OptiPlex-BJ:25000/query_plan?query_id=1e4da996a03e1dd1:0994004900000000
+---------+-------+-------+
| name    | name2 | name3 |
+---------+-------+-------+
| 1;1;1;1 | 2     | 3     |
+---------+-------+-------+
Fetched 1 row(s) in 0.26s
{noformat}

Could you share the results of DESCRIBE FORMATTED on this table?

> Read data column delimit is error if SERDEPROPERTIES with "colelction.delim"
> ----------------------------------------------------------------------------
>
>                 Key: IMPALA-11266
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11266
>             Project: IMPALA
>          Issue Type: Bug
>    Affects Versions: Impala 3.4.0
>            Reporter: qbhan
>            Priority: Major
>         Attachments: image-2022-04-25-09-36-32-041.png
>
>
> I create a table :
> CREATE TABLE default.test_0425 (name STRING ,name2 STRING ,name3 String) ROW 
> FORMAT DELIMITED FIELDS TERMINATED BY '\t'
> WITH SERDEPROPERTIES ('colelction.delim'=';', 'field.delim'='\t', 
> 'mapkey.delim'=',', 'serialization.format'='\t') STORED AS TEXTFILE 
> I insert some data :
> insert into test_0425 values ("1;1;1;1",'2','3');
> when I read this table ,I find impala will use ';' not '\t' split 
> data。Hive/Trino query is ok.
> !image-2022-04-25-09-36-32-041.png!
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to