Uh oh!
There was an error while loading. Please reload this page.
(tools) Add show_segment_data operation to meta_tool - #60608
Conversation
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' ... ```
Thearas
commented
Feb 9, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
gavinchou
commented
Feb 9, 2026
run buildall |
doris-robot
commented
Feb 9, 2026
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
Feb 9, 2026
TPC-H: Total hot run time: 30049 ms |
doris-robot
commented
Feb 9, 2026
ClickBench: Total hot run time: 28.2 s |
gavinchou
commented
Feb 9, 2026
run buildall |
doris-robot
commented
Feb 9, 2026
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
Feb 9, 2026
TPC-H: Total hot run time: 30651 ms |
doris-robot
commented
Feb 9, 2026
ClickBench: Total hot run time: 28.16 s |
doris-robot
commented
Feb 9, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
gavinchou
commented
Feb 9, 2026
run compile |
gavinchou
commented
Feb 10, 2026
run buildall |
gavinchou
commented
Feb 10, 2026
run buildall |
doris-robot
commented
Feb 10, 2026
TPC-H: Total hot run time: 30515 ms |
doris-robot
commented
Feb 10, 2026
ClickBench: Total hot run time: 28.28 s |
doris-robot
commented
Feb 10, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Feb 10, 2026
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
PR approved by anyone and no changes requested. |
PR approved by at least one committer and no changes requested. |
Uh oh!
There was an error while loading. Please reload this page.
) ## Summary Pick #60608 to branch-4.1 Add new operation show_segment_data to meta_tool for reading and displaying segment file column metadata and statistics. ## Changes - 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 - Add common/cpp/private_member_accessor.hpp helper for accessing private members ## Test - [x] Compilation passed (BE meta_tool target) ## Related Issue close#60608 --------- Co-authored-by: gavinchou <gavinchou@apache.org>
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.
This allows users to inspect segment file structure without requiring the full tablet schema.