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

   ## Proposed changes
   
   Add a new operation `gen_empty_segment` to the meta_tool that allows 
generating empty segment files (0 rows). This is useful for testing and 
debugging purposes.
   
   ### Usage
   
   ```bash
   ./meta_tool --operation=gen_empty_segment [--output_path=/path/to/output]
   ```
   
   Default output file name: `empty.dat`
   
   ### Generated file structure
   
   - Short key index page with 0 keys
   - Segment footer with `num_rows=0`
   - Total file size: ~47 bytes
   
   ### Example output
   
   ```
   Generated empty segment file: /tmp/empty.dat
     - Index page size: 27 bytes
     - Footer size: 4 slices, 20 bytes
     - Total file size: 47 bytes
     - num_rows: 0
   ```
   
   ## Checklist
   
   - [x] I have created an issue and described the feature request.
   - [x] I have checked the version labels which the pr will be auto-backported 
to the target branch.
     - [ ] 3.0
     - [ ] 2.1
     - [ ] 2.0
   - [x] I have added test cases for my feature.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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