eldenmoon commented on code in PR #34925:
URL: https://github.com/apache/doris/pull/34925#discussion_r1618934266
##########
be/src/olap/rowset/rowset_meta.cpp:
##########
@@ -213,6 +216,17 @@ void RowsetMeta::merge_rowset_meta(const RowsetMeta&
other) {
if (rowset_state() == RowsetStatePB::BEGIN_PARTIAL_UPDATE) {
set_rowset_state(RowsetStatePB::COMMITTED);
}
+ // In partial update the rowset schema maybe updated when table contains
variant type, so we need the newest schema to be updated
+ // Otherwise the schema is stale and lead to wrong data read
+ if (tablet_schema()->num_variant_columns() > 0) {
Review Comment:
the max version of schema will be choosen as base schema to merge, so if the
newest schema num_variant_columns == 0, all subcolumns will be dropped
--
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]