feng-kui opened a new issue, #17267:
URL: https://github.com/apache/doris/issues/17267

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   1.2.1
   
   ### What's Wrong?
   
   varchar类型字段的值中,包含`%`,stream load导入报错,如下:
   ```
   {"timestamp":"2023-03-01T02:44:08.106+00:00","status":500,"error":"Internal 
Server Error","path":"/api/example_db/table20/_stream_load"}
   ```
   
   ### What You Expected?
   
   stream load导入数据成功
   
   ### How to Reproduce?
   
   建表语句:
   ```
   CREATE TABLE `table20` (
     `id` int(11) NULL,
     `name` varchar(32) NULL DEFAULT ""
   ) ENGINE=OLAP
   UNIQUE KEY(`id`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`id`) BUCKETS 1;
   ```
   
   导入:
   ```
   header = {
   'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
   'Accept': 'application/json;charset=UTF-8',
   'Expect': '100-continue',
   "label": label,
   "format": "json",
   "strip_outer_array": "true"
   }
   
   data = [{"id":1,"name":'1'},{"id":2,"name":'a%'}]
   rsp = requests.put(url=url, headers=header, auth=('root','123'), json=data)
   be_url = rsp.url
   rsp = requests.put(url=be_url, headers=header, auth=('root','123'), 
json=data)
   print(rsp.text)
   ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to