Skip to content

[Bug] [doris] 写入的数据中包含逗号时单条会变成多条记录 #1589

@libailin

Description

@libailin

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

往doris写入时,如果数据中包含逗号时,插入到表的记录会变成以逗号分割后多条。比如其中一个字段的数据是 "a1,a2", 插入到doris后却是两条记录了。

What you expected to happen

可以正确写入包含逗号的数据到doris

How to reproduce


CREATE TABLE sink
(
    `username` varchar
) WITH (
      'password' = 'pwd',
      'connector' = 'doris-x',
      'sink.buffer-flush.interval' = '1000',
      'sink.all-replace' = 'false',
      'sink.buffer-flush.max-rows' = '100',
      'schema' = 'test_base',
      'table-name' = 'table1',
      'sink.parallelism' = '1',
      'feNodes' = 'ip:8030',
      'username' = 'user'
);

insert into sink
SELECT username FROM (VALUES ('a1,a2'))  AS t (username);

Anything else

No response

Version

master

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions