Fixed style check

This commit is contained in:
Maksim Kita 2021-03-08 02:02:50 +03:00 committed by Maksim Kita
parent 45879472d3
commit b5f51e0ca6
4 changed files with 9 additions and 4 deletions

View File

@ -13,8 +13,8 @@ namespace DB
namespace ErrorCodes
{
extern const int TYPE_MISMATCH;
extern const int BAD_ARGUMENTS;
extern const int UNSUPPORTED_METHOD;
extern const int BAD_ARGUMENTS;
}
namespace

View File

@ -18,6 +18,11 @@
namespace DB
{
namespace ErrorCodes
{
extern const int BAD_ARGUMENTS;
}
template <DictionaryKeyType dictionary_key_type>
class DirectDictionary final : public IDictionary
{
@ -31,7 +36,8 @@ public:
DictionarySourcePtr source_ptr_,
BlockPtr saved_block_ = nullptr);
std::string getTypeName() const override {
std::string getTypeName() const override
{
if constexpr (dictionary_key_type == DictionaryKeyType::simple)
return "Direct";
else

View File

@ -26,7 +26,6 @@ SRCS(
CassandraDictionarySource.cpp
CassandraHelpers.cpp
ClickHouseDictionarySource.cpp
ComplexKeyDirectDictionary.cpp
ComplexKeyHashedDictionary.cpp
DictionaryBlockInputStreamBase.cpp
DictionaryFactory.cpp

View File

@ -92,4 +92,4 @@ SELECT * FROM 01754_dictionary_db.direct_dictionary_complex_key_complex_attribut
DROP DICTIONARY 01754_dictionary_db.direct_dictionary_complex_key_complex_attributes;
DROP TABLE 01754_dictionary_db.complex_key_complex_attributes_source_table;
DROP DATABASE 01754_dictionary_db;
DROP DATABASE 01754_dictionary_db;