#include #include namespace DB { namespace ErrorCodes { extern const int TYPE_MISMATCH; } using TYPE = @NAME@; void CacheDictionary::get@NAME@(const std::string & attribute_name, const PaddedPODArray & ids, const TYPE def, ResultArrayType & out) const { auto & attribute = getAttribute(attribute_name); checkAttributeType(name, attribute_name, attribute.type, AttributeUnderlyingType::ut@NAME@); getItemsNumberImpl(attribute, ids, out, [&](const size_t) { return def; }); } }