mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
21 lines
589 B
C++
21 lines
589 B
C++
#include <Dictionaries/CacheDictionary.h>
|
|
#include <Dictionaries/CacheDictionary.inc.h>
|
|
|
|
namespace DB
|
|
{
|
|
namespace ErrorCodes
|
|
{
|
|
extern const int TYPE_MISMATCH;
|
|
}
|
|
|
|
using TYPE = @NAME@;
|
|
void CacheDictionary::get@NAME@(const std::string & attribute_name, const PaddedPODArray<Key> & ids, const TYPE def, ResultArrayType<TYPE> & out) const
|
|
{
|
|
auto & attribute = getAttribute(attribute_name);
|
|
checkAttributeType(name, attribute_name, attribute.type, AttributeUnderlyingType::ut@NAME@);
|
|
|
|
getItemsNumberImpl<TYPE, TYPE>(attribute, ids, out, [&](const size_t) { return def; });
|
|
}
|
|
|
|
}
|