ClickHouse/src/Functions/CastOverloadResolver.h
2023-11-10 05:25:02 +01:00

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