mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
fix
This commit is contained in:
parent
6a51ad425e
commit
79b76d428f
@ -66,7 +66,7 @@ Parser makeParser(const ColumnWithTypeAndName & col)
|
|||||||
{
|
{
|
||||||
throw Exception("Failed to cast " + col.type->getName() + " to " + wanted_data_type->getName(), ErrorCodes::ILLEGAL_COLUMN);
|
throw Exception("Failed to cast " + col.type->getName() + " to " + wanted_data_type->getName(), ErrorCodes::ILLEGAL_COLUMN);
|
||||||
}
|
}
|
||||||
return Parser(std::move(casted));
|
return Parser(std::move(casted->convertToFullColumnIfConst()));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -69,10 +69,10 @@ public:
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
size = tuple.size();
|
size = tuple.size();
|
||||||
#endif
|
#endif
|
||||||
const auto & x_data = static_cast<const ColumnFloat64 &>(*tuple_columns[0]);
|
const auto & x_data = dynamic_cast<const ColumnFloat64 &>(*tuple_columns[0]);
|
||||||
first = x_data.getData().data();
|
first = x_data.getData().data();
|
||||||
|
|
||||||
const auto & y_data = static_cast<const ColumnFloat64 &>(*tuple_columns[1]);
|
const auto & y_data = dynamic_cast<const ColumnFloat64 &>(*tuple_columns[1]);
|
||||||
second = y_data.getData().data();
|
second = y_data.getData().data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user