mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Miscellaneous [#METR-2944].
This commit is contained in:
parent
ae7e7e90eb
commit
3e16aee954
@ -71,25 +71,25 @@ typename Visitor::ResultType apply_visitor(Visitor && visitor, F1 && field1, F2
|
||||
{
|
||||
case Field::Types::Null:
|
||||
return apply_binary_visitor_impl(
|
||||
std::forward<Visitor>(visitor), field1.template get<Null>(), std::forward<Field>(field2));
|
||||
std::forward<Visitor>(visitor), field1.template get<Null>(), std::forward<F2>(field2));
|
||||
case Field::Types::UInt64:
|
||||
return apply_binary_visitor_impl(
|
||||
std::forward<Visitor>(visitor), field1.template get<UInt64>(), std::forward<Field>(field2));
|
||||
std::forward<Visitor>(visitor), field1.template get<UInt64>(), std::forward<F2>(field2));
|
||||
case Field::Types::Int64:
|
||||
return apply_binary_visitor_impl(
|
||||
std::forward<Visitor>(visitor), field1.template get<Int64>(), std::forward<Field>(field2));
|
||||
std::forward<Visitor>(visitor), field1.template get<Int64>(), std::forward<F2>(field2));
|
||||
case Field::Types::Float64:
|
||||
return apply_binary_visitor_impl(
|
||||
std::forward<Visitor>(visitor), field1.template get<Float64>(), std::forward<Field>(field2));
|
||||
std::forward<Visitor>(visitor), field1.template get<Float64>(), std::forward<F2>(field2));
|
||||
case Field::Types::String:
|
||||
return apply_binary_visitor_impl(
|
||||
std::forward<Visitor>(visitor), field1.template get<String>(), std::forward<Field>(field2));
|
||||
std::forward<Visitor>(visitor), field1.template get<String>(), std::forward<F2>(field2));
|
||||
case Field::Types::Array:
|
||||
return apply_binary_visitor_impl(
|
||||
std::forward<Visitor>(visitor), field1.template get<Array>(), std::forward<Field>(field2));
|
||||
std::forward<Visitor>(visitor), field1.template get<Array>(), std::forward<F2>(field2));
|
||||
case Field::Types::Tuple:
|
||||
return apply_binary_visitor_impl(
|
||||
std::forward<Visitor>(visitor), field1.template get<Tuple>(), std::forward<Field>(field2));
|
||||
std::forward<Visitor>(visitor), field1.template get<Tuple>(), std::forward<F2>(field2));
|
||||
|
||||
default:
|
||||
throw Exception("Bad type of Field", ErrorCodes::BAD_TYPE_OF_FIELD);
|
||||
|
@ -1,6 +1,8 @@
|
||||
#include <DB/Common/typeid_cast.h>
|
||||
#include <DB/Parsers/ASTLiteral.h>
|
||||
#include <DB/Parsers/ASTFunction.h>
|
||||
#include <DB/IO/WriteHelpers.h>
|
||||
#include <DB/IO/WriteBufferFromString.h>
|
||||
|
||||
|
||||
namespace DB
|
||||
|
Loading…
Reference in New Issue
Block a user