[BugFix] change CHECK to DCHECK in nullablecolumn to prevent the crash (#63553)

Signed-off-by: Murphy <mofei@starrocks.com>
This commit is contained in:
Murphy 2025-09-25 18:47:16 +08:00 committed by GitHub
parent aec060a697
commit 28062f336c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -529,11 +529,11 @@ 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) {
auto null_data = _null_column->immutable_data();
CHECK(!SIMD::contain_nonzero(null_data, 0));
DCHECK(!SIMD::contain_nonzero(null_data, 0));
}
_data_column->check_or_die();
_null_column->check_or_die();