mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
fix style and pvs check
This commit is contained in:
parent
bab7c762bc
commit
0436e0f8f1
@ -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()))
|
||||||
|
Loading…
Reference in New Issue
Block a user