mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
30 lines
506 B
C++
30 lines
506 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <optional>
|
|
#include <Interpreters/Context_fwd.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IFunctionOverloadResolver;
|
|
using FunctionOverloadResolverPtr = std::shared_ptr<IFunctionOverloadResolver>;
|
|
|
|
enum class CastType
|
|
{
|
|
nonAccurate,
|
|
accurate,
|
|
accurateOrNull
|
|
};
|
|
|
|
struct CastDiagnostic
|
|
{
|
|
std::string column_from;
|
|
std::string column_to;
|
|
};
|
|
|
|
FunctionOverloadResolverPtr createInternalCastOverloadResolver(CastType type, std::optional<CastDiagnostic> diagnostic);
|
|
|
|
}
|