mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
convert const cols to full cols
This commit is contained in:
parent
e4d5db6161
commit
7c9a581af6
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt8>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt8>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -53,7 +53,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt8>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt8>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -58,7 +58,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt8>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt8>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -50,7 +50,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -50,7 +50,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -53,7 +53,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt8>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt8>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -53,7 +53,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt8>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt8>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -57,7 +57,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * col_hindex_origin = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * col_hindex_origin = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!col_hindex_origin)
|
if (!col_hindex_origin)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
@ -68,7 +72,7 @@ public:
|
|||||||
|
|
||||||
const auto & data_hindex_origin = col_hindex_origin->getData();
|
const auto & data_hindex_origin = col_hindex_origin->getData();
|
||||||
|
|
||||||
const auto * col_hindex_dest = checkAndGetColumn<ColumnUInt64>(arguments[1].column.get());
|
const auto * col_hindex_dest = checkAndGetColumn<ColumnUInt64>(non_const_arguments[1].column.get());
|
||||||
if (!col_hindex_dest)
|
if (!col_hindex_dest)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -50,7 +50,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -50,7 +50,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -49,7 +49,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt8>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt8>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -61,7 +61,11 @@ namespace
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!col_hindex)
|
if (!col_hindex)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
@ -71,7 +75,7 @@ namespace
|
|||||||
getName());
|
getName());
|
||||||
const auto & data_hindex = col_hindex->getData();
|
const auto & data_hindex = col_hindex->getData();
|
||||||
|
|
||||||
const auto * col_resolution = checkAndGetColumn<ColumnUInt8>(arguments[1].column.get());
|
const auto * col_resolution = checkAndGetColumn<ColumnUInt8>(non_const_arguments[1].column.get());
|
||||||
if (!col_resolution)
|
if (!col_resolution)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -66,7 +66,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!col_hindex)
|
if (!col_hindex)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
@ -77,7 +81,7 @@ public:
|
|||||||
|
|
||||||
const auto & data_hindex = col_hindex->getData();
|
const auto & data_hindex = col_hindex->getData();
|
||||||
|
|
||||||
const auto * col_resolution = checkAndGetColumn<ColumnUInt8>(arguments[1].column.get());
|
const auto * col_resolution = checkAndGetColumn<ColumnUInt8>(non_const_arguments[1].column.get());
|
||||||
if (!col_resolution)
|
if (!col_resolution)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -52,7 +52,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -60,7 +60,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!col_hindex)
|
if (!col_hindex)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
@ -71,7 +75,7 @@ public:
|
|||||||
|
|
||||||
const auto & data_hindex = col_hindex->getData();
|
const auto & data_hindex = col_hindex->getData();
|
||||||
|
|
||||||
const auto * col_resolution = checkAndGetColumn<ColumnUInt8>(arguments[1].column.get());
|
const auto * col_resolution = checkAndGetColumn<ColumnUInt8>(non_const_arguments[1].column.get());
|
||||||
if (!col_resolution)
|
if (!col_resolution)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -53,7 +53,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -64,7 +64,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * col_hindex = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!col_hindex)
|
if (!col_hindex)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
@ -76,7 +80,7 @@ public:
|
|||||||
const auto & data_hindex = col_hindex->getData();
|
const auto & data_hindex = col_hindex->getData();
|
||||||
|
|
||||||
/// ColumnUInt16 is sufficient as the max value of 2nd arg is checked (arg > 0 < 10000) in implementation below
|
/// ColumnUInt16 is sufficient as the max value of 2nd arg is checked (arg > 0 < 10000) in implementation below
|
||||||
const auto * col_k = checkAndGetColumn<ColumnUInt16>(arguments[1].column.get());
|
const auto * col_k = checkAndGetColumn<ColumnUInt16>(non_const_arguments[1].column.get());
|
||||||
if (!col_k)
|
if (!col_k)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
@ -59,7 +59,11 @@ public:
|
|||||||
|
|
||||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr &, size_t input_rows_count) const override
|
||||||
{
|
{
|
||||||
const auto * column = checkAndGetColumn<ColumnUInt64>(arguments[0].column.get());
|
auto non_const_arguments = arguments;
|
||||||
|
for (auto & argument : non_const_arguments)
|
||||||
|
argument.column = argument.column->convertToFullColumnIfConst();
|
||||||
|
|
||||||
|
const auto * column = checkAndGetColumn<ColumnUInt64>(non_const_arguments[0].column.get());
|
||||||
if (!column)
|
if (!column)
|
||||||
throw Exception(
|
throw Exception(
|
||||||
ErrorCodes::ILLEGAL_COLUMN,
|
ErrorCodes::ILLEGAL_COLUMN,
|
||||||
|
Loading…
Reference in New Issue
Block a user