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

   This is an improvement for debug tool meta_tool.
   
   Add new operation show_segment_data to meta_tool for reading and displaying 
segment file column metadata and statistics.
   
   - Add get_field_type_string() to convert FieldType to readable string
   - Add get_encoding_string() to convert EncodingTypePB to readable string
   - Add get_compression_string() to convert CompressionTypePB to readable 
string
   - Add print_column_meta() to print column metadata recursively
   - Add show_segment_data() to display segment file info and statistics
   
   This allows users to inspect segment file structure without requiring the 
full tablet schema.
   
   ```
   meta_tool --operation=show_segment_data 
--file=020000000000004fd4412b500cb0833afcc5dd12e833c59b_0.dat
   
   === Segment File Info ===
   File: 020000000000004fd4412b500cb0833afcc5dd12e833c59b_0.dat
   Num Rows: 2
   Num Columns: 16
   Compression: LZ4F
   
   === column_id_0: type=VARCHAR, nullable=false, encoding=DICT_ENCODING ===
   Dictionary Page: offset=56, size=53 bytes
   Indexes: ORDINAL, ZONE_MAP
   Data Values (2 of 2 rows, showing first 2):
     [0] '10023--1-id'
     [1] '10023--1-score'
   
   === column_id_1: type=VARCHAR, nullable=false, encoding=DICT_ENCODING ===
   Dictionary Page: offset=164, size=25 bytes
   Indexes: ORDINAL, ZONE_MAP
   Data Values (2 of 2 rows, showing first 2):
     [0] '0'
     [1] '0'
   
   ...
   ```
   
   


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