branch-4.1: (tools) Add show_segment_data operation to meta_tool#62385
Merged
yiguolei merged 2 commits intoapache:branch-4.1from Apr 17, 2026
Merged
branch-4.1: (tools) Add show_segment_data operation to meta_tool#62385yiguolei merged 2 commits intoapache:branch-4.1from
yiguolei merged 2 commits intoapache:branch-4.1from
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' ... ```
- Update namespace from doris::vectorized to doris for IColumn, ColumnNullable, MutableColumnPtr, DataTypeFactory - Remove duplicate vec/ includes (branch-4.1 uses core/ paths) - Fix ACCESS_PRIVATE_FIELD macro types to match branch-4.1 ExecEnv members - Fix variable name tracking -> tracking_memory
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
Contributor
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
yiguolei
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Test
Related Issue
close #60608