liaoxin01 opened a new pull request, #34364:
URL: https://github.com/apache/doris/pull/34364
## Proposed changes
Issue Number: close #xxx
<!--Describe your changes.-->
A row of data happened to have an escape character truncated, mistaking the
next character for an enclose, resulting in a delimitation error.
for example:
origin data
```
1,2,3,"{~"title~": ~"abced~", ~"id~": 1, ~"name~": ~"user1~", ~"email~":
~"[email protected]~"}"
```
curl --location-trusted -u root: -T data -H "format:csv" -H
"column_separator:," -H "format:csv" -H 'enclose:"' -H
"trim_double_quotes:true" -H 'escape:~'
http://127.0.0.1:8040/api/test/load_test_2/_stream_load
Truncated when a row of data is read
```
1,2,3,"{~"title~": ~"abced~", ~"id~": 1, ~"name~": ~
"user1~", ~"email~": ~"[email protected]~"}"
```
The quotation before `user1` is considered an enclose character.
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]