sollhui opened a new pull request, #53374:
URL: https://github.com/apache/doris/pull/53374

   ### What problem does this PR solve?
   
   #### Background
   When using bulk load, it was found that one piece of data was lost:
   <img width="2630" height="1208" alt="image" 
src="https://github.com/user-attachments/assets/7f7f4cc7-ca2a-4a33-95ef-18f79db1617a";
 />
   
   ##### Root Cause
   <img width="1208" height="540" alt="image" 
src="https://github.com/user-attachments/assets/399d4f06-72fd-4d55-a327-302fbc1d92c3";
 />
   Multiple concurrent split file locations will be  determined in plan phase, 
if the split point happens to be in the middle of the multi char line delimiter:
   
   - The previous concurrent will read the complete row1 and read a little more 
to read the line delimiter.
   - The latter concurrency will start reading from half of the multi char line 
delimiter, and row2 is the first line of this concurrency, but the first line 
in the middle range is always discarded, so row2 will be lost.
   
   ##### Solution
   Start reading by adding the length of the line delimiter character forward
   ```
   _start_offset -= line_delimiter.size();
   ```
   <img width="1028" height="902" alt="image" 
src="https://github.com/user-attachments/assets/69f2daee-46db-4a5b-ae78-ac9ffcf7e0ae";
 />
   
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


-- 
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]

Reply via email to