Uh oh!
There was an error while loading. Please reload this page.
[branch-4.1][feature](variant) add variant doc mode (#59183) - #61281
Conversation
hello-stephen
commented
Mar 12, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
csun5285
commented
Mar 12, 2026
run buildall |
csun5285
commented
Mar 12, 2026
run buildall |
hello-stephen
commented
Mar 12, 2026
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Mar 12, 2026
FE UT Coverage ReportIncrement line coverage |
csun5285
commented
Mar 14, 2026
run buildall |
doris-robot
commented
Mar 14, 2026
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
csun5285
commented
Mar 15, 2026
run buildall |
doris-robot
commented
Mar 15, 2026
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
csun5285
commented
Mar 16, 2026
run buildall |
doris-robot
commented
Mar 16, 2026
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
**DOC encoding**: materialize all subcolumns, and additionally keep the original JSON as a “stored field” so queries can quickly return the entire JSON document. doc: apache/doris-website#3253
…hmarks (apache#60511) Improve VARIANT doc-mode ingestion and compaction performance, and add a write/compaction benchmark UT. Key changes: - Add config `enable_variant_doc_compaction_sparse_write` (default: true) to enable sparse writing for materialized subcolumns during doc-mode compaction. - Optimize doc value column generation: deduplicate paths, sort paths once, and serialize values directly into the binary column to reduce allocations/copies. - Optimize bucket sharding/stats collection with phmap and cached path->bucket mapping; remove per-row doc value sorting in writer. - Refactor VariantDocCompactWriter finalize flow with an explicit write plan; skip invalid array types and fix doc materialization offset handling. - Update variant-related UTs and add VariantDocModeCompactionTest to benchmark segment import and doc-mode compaction. UT Testing: - BE UT: VariantColumnWriterReaderTest.*, VariantUtilTest.*, ColumnVariantTest.* Benchmark Testing(Release compile): - BE UT (Release-only, slow): VariantDocModeCompactionTest.* <img width="902" height="778" alt="image" src="https://github.com/user-attachments/assets/08fb9341-2620-484d-9cf9-f3a64c95d4bd" />
…index_fault_injection (apache#60518)
…dom session variables Pin default_variant_enable_doc_mode=false and default_variant_max_subcolumns_count=2048 in search variant test suites to prevent fuzzy mode randomization from disabling subcolumn extraction, which causes inverted index search to return empty results.
Fix two test failures caused by variant doc mode cherry-picks: 1. ColumnVariantTest.test_variant_deserialize_from_sparse_column: Field element type (TYPE_INT) mismatched FieldInfo scalar_type_id (TYPE_TINYINT), causing Field::get<TINYINT>() assertion failure. Fixed by using matching TYPE_TINYINT field for first insert and separate TYPE_INT field for second insert (type promotion test). 2. NativeReaderWriterTest.read_all_types_from_pregenerated_file: Pre-generated binary test data was incompatible with updated Variant serialization format. Regenerated the test data file.
csun5285
commented
Mar 16, 2026
run buildall |
hello-stephen
commented
Mar 16, 2026
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
hello-stephen
commented
Mar 16, 2026
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Mar 16, 2026
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
Uh oh!
There was an error while loading. Please reload this page.
pick from master #59183, #60511, #60518, #60668