Move a class into an anonymous namespace

This commit is contained in:
Alexey Milovidov 2024-03-09 05:27:29 +01:00
parent 1c44f3d091
commit 009c2ea9f6
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,5 @@
#include "ReadBufferFromRemoteFSGather.h"
#include <IO/SeekableReadBuffer.h>
#include <Disks/IO/CachedOnDiskReadBufferFromFile.h>
#include <Disks/ObjectStorages/Cached/CachedObjectStorage.h>
#include <Interpreters/Cache/FileCache.h>
@ -9,7 +7,6 @@
#include <IO/ReadSettings.h>
#include <IO/SwapHelper.h>
#include <Interpreters/FilesystemCacheLog.h>
#include <base/hex.h>
#include <Common/logger_useful.h>
using namespace DB;

View File

@ -12,6 +12,9 @@ namespace ErrorCodes
extern const int ILLEGAL_TYPE_OF_ARGUMENT;
}
namespace
{
/** CastInternal does not preserve nullability of the data type,
* i.e. CastInternal(toNullable(toInt8(1)) as Int32) will be Int32(1).
*
@ -136,6 +139,8 @@ using CastOverloadResolver = CastOverloadResolverImpl<cast_type, false, CastOver
template <CastType cast_type>
using CastInternalOverloadResolver = CastOverloadResolverImpl<cast_type, true, CastInternalOverloadName, CastInternalName>;
}
FunctionOverloadResolverPtr createInternalCastOverloadResolver(CastType type, std::optional<CastDiagnostic> diagnostic)
{