mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fixed style check
This commit is contained in:
parent
3c4912621e
commit
9199910f77
@ -13,6 +13,7 @@
|
|||||||
#include <Common/assert_cast.h>
|
#include <Common/assert_cast.h>
|
||||||
#include <IO/WriteHelpers.h>
|
#include <IO/WriteHelpers.h>
|
||||||
#include <Interpreters/Context_fwd.h>
|
#include <Interpreters/Context_fwd.h>
|
||||||
|
#include <Interpreters/castColumn.h>
|
||||||
|
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
@ -224,10 +225,10 @@ private:
|
|||||||
"Parameter number ({}) is greater than the size of arguments ({}). This is a bug",
|
"Parameter number ({}) is greater than the size of arguments ({}). This is a bug",
|
||||||
parameter_number, arguments.size());
|
parameter_number, arguments.size());
|
||||||
|
|
||||||
const IColumn * col = arguments[parameter_number].column.get();
|
const auto col = castColumnAccurate(arguments[parameter_number], std::make_shared<DataTypeFloat64>());
|
||||||
std::optional<ResultType> parameter;
|
std::optional<ResultType> parameter;
|
||||||
|
|
||||||
if (const auto * col_in = checkAndGetColumn<ColumnVector<ResultType>>(col))
|
if (const ColumnVector<ResultType> * const col_in = checkAndGetColumn<ColumnVector<ResultType>>(col.get()))
|
||||||
{
|
{
|
||||||
parameter = *col_in->getData().data();
|
parameter = *col_in->getData().data();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user