lide-reed opened a new issue, #10025:
URL: https://github.com/apache/incubator-doris/issues/10025

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Description
   
   when a csv file include a separator at the end of line, the stream load 
could ignore it.
   The current code will report error and users must be produce it by 
themselves.
   For an example:
   `+ curl --location-trusted -u admin:upbAGZ2495 -T nation.tbl -H 
label:nation-1651803743 -H 'column_separator:|' 
http://10.0.10.191:8030/api/tpchdb/nation/_stream_load
   {
       "TxnId": 384,
       "Label": "nation-1651803743",
       "TwoPhaseCommit": "false",
       "Status": "Fail",
       "Message": "too many filtered rows",
       "NumberTotalRows": 25,
       "NumberLoadedRows": 0,
       "NumberFilteredRows": 25,
       "NumberUnselectedRows": 0,
       "LoadBytes": 2224,
       "LoadTimeMs": 5,
       "BeginTxnTimeMs": 0,
       "StreamLoadPutTimeMs": 0,
       "ReadDataTimeMs": 0,
       "WriteDataTimeMs": 3,
       "CommitAndPublishTimeMs": 0,
       "ErrorURL": 
"http://10.0.10.13:8040/api/_load_error_log?file=__shard_3/error_log_insert_stmt_4141b040d918db2c-53d1e1450b976b2_4141b040d918db2c_53d1e1450b976b2";
   }
   
   Reason: actual column number is more than schema column number.actual 
number: 5, column separator: [|], line delimiter: [
   ], schema number: 4; . src line [0|ALGERIA|0| haggle. carefully final 
deposits detect slyly agai|];`
   
   ### Solution
   
   Just ignore the separator at the end of line when loading.
   
   ### 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