[fix](compile) fix BE compile failure on Mac (#27206)

This commit is contained in:
zy-kkk
2023-11-17 23:52:51 +08:00
committed by GitHub
parent b477839bce
commit 5fb27eb652

View File

@ -64,7 +64,7 @@ Status VExplodeNumbersTableFunction::process_init(Block* block, RuntimeState* st
}
((ColumnInt32*)_elements_column.get())->clear();
//_cur_size may be a negative number
_cur_size = std::max(0L, _cur_size);
_cur_size = std::max<int64_t>(0, _cur_size);
if (_cur_size &&
_cur_size <= state->batch_size()) { // avoid elements_column too big or empty
_is_const = true; // use const optimize