[BugFix] change CHECK to DCHECK in nullablecolumn to prevent the crash (backport #63553) (backport #63565) (#63606)
Signed-off-by: Murphy <mofei@starrocks.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Murphy <96611012+murphyatwork@users.noreply.github.com> Co-authored-by: Murphy <mofei@starrocks.com>
This commit is contained in:
parent
a17c83e003
commit
308a567473
|
|
@ -523,10 +523,10 @@ void NullableColumn::put_mysql_row_buffer(MysqlRowBuffer* buf, size_t idx, bool
|
|||
}
|
||||
|
||||
void NullableColumn::check_or_die() const {
|
||||
CHECK_EQ(_null_column->size(), _data_column->size());
|
||||
DCHECK_EQ(_null_column->size(), _data_column->size());
|
||||
// when _has_null=true, the column may have no null value, so don't check.
|
||||
if (!_has_null) {
|
||||
CHECK(!SIMD::contain_nonzero(_null_column->get_data(), 0));
|
||||
DCHECK(!SIMD::contain_nonzero(_null_column->get_data(), 0));
|
||||
}
|
||||
_data_column->check_or_die();
|
||||
_null_column->check_or_die();
|
||||
|
|
|
|||
Loading…
Reference in New Issue