[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:
mergify[bot] 2025-09-26 08:01:25 +00:00 committed by GitHub
parent a17c83e003
commit 308a567473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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();