mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
26 lines
666 B
C++
26 lines
666 B
C++
#include <Dictionaries/ComplexKeyCacheDictionary.h>
|
|
|
|
namespace DB
|
|
{
|
|
namespace ErrorCodes
|
|
{
|
|
extern const int TYPE_MISMATCH;
|
|
}
|
|
|
|
using TYPE = @NAME@;
|
|
|
|
void ComplexKeyCacheDictionary::get@NAME@(const std::string & attribute_name,
|
|
const Columns & key_columns,
|
|
const DataTypes & key_types,
|
|
const TYPE def,
|
|
ResultArrayType<TYPE> & out) const
|
|
{
|
|
dict_struct.validateKeyTypes(key_types);
|
|
|
|
auto & attribute = getAttribute(attribute_name);
|
|
checkAttributeType(name, attribute_name, attribute.type, AttributeUnderlyingType::ut@NAME@);
|
|
|
|
getItemsNumberImpl<TYPE, TYPE>(attribute, key_columns, out, [&](const size_t) { return def; });
|
|
}
|
|
}
|