Fixed style check

This commit is contained in:
Michal Tabaszewski 2024-10-29 00:33:54 +01:00
parent 3c4912621e
commit 9199910f77

View File

@ -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();
} }