This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 2e111c0  [Bug] Fix bug that BE crash when doing alter table task 
(#4015)
2e111c0 is described below

commit 2e111c05ac775a18351d567359dba07a555cbff8
Author: Mingyu Chen <morningman....@gmail.com>
AuthorDate: Sun Jul 5 16:28:03 2020 +0800

    [Bug] Fix bug that BE crash when doing alter table task (#4015)
    
    Need to check delete condition first
---
 be/src/olap/rowset/segment_v2/segment_iterator.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp 
b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index 7b92f0c..ec8bb47 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -275,7 +275,10 @@ Status 
SegmentIterator::_get_row_ranges_from_conditions(RowRanges* condition_row
         RowRanges delete_condition_row_ranges = RowRanges::create_single(0);
         for (auto& delete_column_condition : delete_condition->columns()) {
             const int32_t cid = delete_column_condition.first;
-            CondColumn* column_cond = _opts.conditions->get_column(cid);
+            CondColumn* column_cond = nullptr;
+            if (_opts.conditions != nullptr) {
+                column_cond = _opts.conditions->get_column(cid);
+            }
             RowRanges single_delete_condition_row_ranges = 
RowRanges::create_single(num_rows());
             RETURN_IF_ERROR(
                     _column_iterators[cid]->get_row_ranges_by_zone_map(


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to