You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Taras Ledkov (Jira)" <ji...@apache.org> on 2022/08/24 07:10:00 UTC

[jira] [Commented] (IGNITE-12852) Comma in field is not supported by COPY command

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

Taras Ledkov commented on IGNITE-12852:
---------------------------------------

[~antkr], the patch is OK with me.
What doyou think about CSV that contains values with line separator, e.g:
{code}
ID, Comment, LikesCount
0, "Single line comment", 28
1. "Multiple
line
comment", 42
{code}
Looks like it isn't supported now.
May be we have to file issues to implement Ignite CSV parser according with [RFC-4180|https://www.rfc-editor.org/rfc/rfc4180]? 


> Comma in field is not supported by COPY command
> -----------------------------------------------
>
>                 Key: IGNITE-12852
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12852
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 2.8
>            Reporter: YuJue Li
>            Assignee: Anton Kurbanov
>            Priority: Critical
>             Fix For: 2.14
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> CREATE TABLE test(a int,b varchar(100),c int,PRIMARY key(a)); 
>  
> a.csv: 
> 1,"a,b",2 
>  
> COPY FROM '/data/a.csv' INTO test (a,b,c) FORMAT CSV; 
>  
> The copy command fails because there is a comma in the second field,but this is a fully legal and compliant CSV format



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