add unlikely for performance

This commit is contained in:
shuchaome 2022-03-09 17:02:07 +08:00
parent 8027bb1e32
commit 9647818adc

View File

@ -537,7 +537,7 @@ void ArrowColumnToCHColumn::arrowTableToCHChunk(Chunk & res, std::shared_ptr<arr
void ArrowColumnToCHColumn::arrowColumnsToCHChunk(Chunk & res, NameToColumnPtr & name_to_column_ptr)
{
if (name_to_column_ptr.empty())
if (unlikely(name_to_column_ptr.empty()))
throw Exception(ErrorCodes::INCORRECT_NUMBER_OF_COLUMNS, "Columns is empty");
Columns columns_list;