eldenmoon opened a new pull request, #65660:
URL: https://github.com/apache/doris/pull/65660
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: A distributed ordered query could return a VARIANT root
value such as [] even though sparse object fields were present. Row-copy
reconstruction changed dense/sparse layout, pending default suffixes were
omitted, and root visibility did not consider sparse row entries. Preserve
physical structure during row copy, materialize suffix defaults, and prefer
sparse/object fields over root serialization.
### Release note
Fix incorrect VARIANT results in distributed ordered queries with sparse
subcolumns.
### Check List (For Author)
- Test:
- Regression test: variant_p0/test_topn_lazy_materialize_sparse_variant
- Unit Test: three focused ColumnVariantTest cases
- ASAN BE build
- Behavior changed: Yes (VARIANT rows with sparse object fields are
serialized correctly instead of an unrelated root value)
- Does this need documentation: No
--
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]