eldenmoon opened a new pull request, #31572:
URL: https://github.com/apache/doris/pull/31572

   …torVariant::set_source_column`
   
   When compaction, if some segments miss variant root, there is chance to get 
emtpy root variant.So add some defence code in OlapColumnDataConvertorVariant 
to prevent from accessing null root
   
   ```
   5# doris::vectorized::ColumnObject::Subcolumn::get_finalized_column_ptr() 
const at 
/mnt/ssd01/selectdb-doris-package/enterprise-core/be/src/vec/columns/column_object.cpp:556
    6# 
doris::vectorized::OlapBlockDataConvertor::OlapColumnDataConvertorVariant::set_source_column(doris::vectorized::ColumnWithTypeAndName
 const&, unsigned long, unsigned long) at 
/mnt/ssd01/selectdb-doris-package/enterprise-core/be/src
   /vec/olap/olap_data_convertor.cpp:1076
    7# 
doris::vectorized::OlapBlockDataConvertor::set_source_content(doris::vectorized::Block
 const*, unsigned long, unsigned long) at 
/mnt/ssd01/selectdb-doris-package/enterprise-core/be/src/vec/olap/olap_data_convertor.cpp:207
    8# doris::segment_v2::SegmentWriter::append_block(doris::vectorized::Block 
const*, unsigned long, unsigned long) at 
/mnt/ssd01/selectdb-doris-package/enterprise-core/be/src/olap/rowset/segment_v2/segment_writer.cpp:727
    9# doris::VerticalBetaRowsetWriter::add_columns(doris::vectorized::Block 
const*, std::vector > const&, bool, unsigned int) at 
/mnt/ssd01/selectdb-doris-package/enterprise-core/be/src/olap/row
   set/vertical_beta_rowset_writer.cpp:125
   ```
   
   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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]

Reply via email to