fix style and pvs check

This commit is contained in:
filipe 2020-10-03 20:50:44 -03:00
parent bab7c762bc
commit 0436e0f8f1

View File

@ -452,11 +452,12 @@ private:
if (arguments.size() == 2) if (arguments.size() == 2)
{ {
const ColumnPtr & maximum_unit_column = block.getByPosition(arguments[1]).column; const ColumnPtr & maximum_unit_column = block.getByPosition(arguments[1]).column;
if (const ColumnConst * maximum_unit_const_col = checkAndGetColumnConstStringOrFixedString(maximum_unit_column.get())) const ColumnConst * maximum_unit_const_col = checkAndGetColumnConstStringOrFixedString(maximum_unit_column.get());
if (maximum_unit_const_col)
maximum_unit = maximum_unit_const_col->getValue<String>(); maximum_unit = maximum_unit_const_col->getValue<String>();
else else
throw Exception( throw Exception(
"Illegal column " + arguments[1].get()->getName() + " of argument of function " + getName(), ErrorCodes::ILLEGAL_COLUMN); "Illegal column " + maximum_unit_const_col->getName() + " of argument of function " + getName(), ErrorCodes::ILLEGAL_COLUMN);
} }
if (const ColumnVector<T> * col_from = checkAndGetColumn<ColumnVector<T>>(block.getByPosition(arguments[0]).column.get())) if (const ColumnVector<T> * col_from = checkAndGetColumn<ColumnVector<T>>(block.getByPosition(arguments[0]).column.get()))