Skip to content

branch-4.1: [improvement](be) Optimize Variant V2 ingestion and STRING casts - #66744

Merged
yiguolei merged 4 commits into
apache:branch-4.1from
eldenmoon:branch-pick-66709-4.1
Aug 18, 2026
Merged

branch-4.1: [improvement](be) Optimize Variant V2 ingestion and STRING casts#66744
yiguolei merged 4 commits into
apache:branch-4.1from
eldenmoon:branch-pick-66709-4.1

Conversation

@eldenmoon

Copy link
Copy Markdown
Member

cherry-pick #66709

@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@eldenmoon

Copy link
Copy Markdown
MemberAuthor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 93.72% (194/207) 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage73.93% (30818/41687)
Line Coverage58.04% (341004/587535)
Region Coverage55.04% (284660/517214)
Branch Coverage55.91% (128067/229057)

@eldenmoon
eldenmoon marked this pull request as ready for review August 17, 2026 01:28
@yiguolei
yiguolei merged commit 042429a into apache:branch-4.1Aug 18, 2026
32 of 35 checks passed
hubgeter added a commit to hubgeter/doris that referenced this pull request Aug 18, 2026
Resolved four conflicts, all against apache#66744 "Optimize Variant V2 ingestion and
STRING casts" and its VariantRef::ObjectView work:
- variant_value.{h,cpp}: kept both additions. _container_offset() and the
index_out output of _object_find_by_id() belong to the direct-seek container
lookup on this branch; object_view() and the optional dictionary_size of
_object_field_id() come from upstream. They do not overlap, and passing no
dictionary_size keeps the previous metadata.dict_size() behaviour.
- cast_variant_to_string.cpp: upstream's payload-reuse short circuit supersedes
the one added here, because it also merges forced nulls without rebuilding the
column. Kept it, and kept this branch's handling of the remaining case, where
a string typed column does contain Variant nulls and the surviving rows can
still be read straight from the typed payload.
- cast_variant_v2_from_test.cpp: kept upstream's typed_strings() fixture and its
two tests, which cover payload reuse and the forced/inner null matrix more
precisely. Kept only the added test that cross-checks the typed and encoded
casts byte for byte, which is the invariant typed direct-seek results rely on.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@eldenmoon@hello-stephen@yiguolei