mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
Fix style
This commit is contained in:
parent
c9e98c8deb
commit
5e89894b98
@ -50,7 +50,8 @@ IncludeCategories:
|
|||||||
- Regex: '.*'
|
- Regex: '.*'
|
||||||
Priority: 40
|
Priority: 40
|
||||||
ReflowComments: false
|
ReflowComments: false
|
||||||
AlignEscapedNewlinesLeft: true
|
AlignEscapedNewlinesLeft: false
|
||||||
|
AlignEscapedNewlines: DontAlign
|
||||||
|
|
||||||
# Not changed:
|
# Not changed:
|
||||||
AccessModifierOffset: -4
|
AccessModifierOffset: -4
|
||||||
|
@ -592,7 +592,8 @@ void registerDictionaryCache(DictionaryFactory & factory)
|
|||||||
const DictionaryStructure & dict_struct,
|
const DictionaryStructure & dict_struct,
|
||||||
const Poco::Util::AbstractConfiguration & config,
|
const Poco::Util::AbstractConfiguration & config,
|
||||||
const std::string & config_prefix,
|
const std::string & config_prefix,
|
||||||
DictionarySourcePtr source_ptr) -> DictionaryPtr {
|
DictionarySourcePtr source_ptr) -> DictionaryPtr
|
||||||
|
{
|
||||||
if (dict_struct.key)
|
if (dict_struct.key)
|
||||||
throw Exception{"'key' is not supported for dictionary of layout 'cache'", ErrorCodes::UNSUPPORTED_METHOD};
|
throw Exception{"'key' is not supported for dictionary of layout 'cache'", ErrorCodes::UNSUPPORTED_METHOD};
|
||||||
|
|
||||||
|
@ -408,7 +408,8 @@ void registerDictionaryComplexKeyCache(DictionaryFactory & factory)
|
|||||||
const DictionaryStructure & dict_struct,
|
const DictionaryStructure & dict_struct,
|
||||||
const Poco::Util::AbstractConfiguration & config,
|
const Poco::Util::AbstractConfiguration & config,
|
||||||
const std::string & config_prefix,
|
const std::string & config_prefix,
|
||||||
DictionarySourcePtr source_ptr) -> DictionaryPtr {
|
DictionarySourcePtr source_ptr) -> DictionaryPtr
|
||||||
|
{
|
||||||
if (!dict_struct.key)
|
if (!dict_struct.key)
|
||||||
throw Exception{"'key' is required for dictionary of layout 'complex_key_hashed'", ErrorCodes::BAD_ARGUMENTS};
|
throw Exception{"'key' is required for dictionary of layout 'complex_key_hashed'", ErrorCodes::BAD_ARGUMENTS};
|
||||||
const auto & layout_prefix = config_prefix + ".layout";
|
const auto & layout_prefix = config_prefix + ".layout";
|
||||||
|
@ -802,7 +802,8 @@ void registerDictionaryComplexKeyHashed(DictionaryFactory & factory)
|
|||||||
const DictionaryStructure & dict_struct,
|
const DictionaryStructure & dict_struct,
|
||||||
const Poco::Util::AbstractConfiguration & config,
|
const Poco::Util::AbstractConfiguration & config,
|
||||||
const std::string & config_prefix,
|
const std::string & config_prefix,
|
||||||
DictionarySourcePtr source_ptr) -> DictionaryPtr {
|
DictionarySourcePtr source_ptr) -> DictionaryPtr
|
||||||
|
{
|
||||||
if (!dict_struct.key)
|
if (!dict_struct.key)
|
||||||
throw Exception{"'key' is required for dictionary of layout 'complex_key_hashed'", ErrorCodes::BAD_ARGUMENTS};
|
throw Exception{"'key' is required for dictionary of layout 'complex_key_hashed'", ErrorCodes::BAD_ARGUMENTS};
|
||||||
|
|
||||||
|
@ -193,7 +193,8 @@ BlockInputStreamPtr ExecutableDictionarySource::loadKeys(const Columns & key_col
|
|||||||
auto input_stream = context.getInputFormat(format, process->out, sample_block, max_block_size);
|
auto input_stream = context.getInputFormat(format, process->out, sample_block, max_block_size);
|
||||||
|
|
||||||
return std::make_shared<BlockInputStreamWithBackgroundThread>(
|
return std::make_shared<BlockInputStreamWithBackgroundThread>(
|
||||||
input_stream, std::move(process), std::packaged_task<void()>([output_stream, key_columns, &requested_rows, this]() mutable {
|
input_stream, std::move(process), std::packaged_task<void()>([output_stream, key_columns, &requested_rows, this]() mutable
|
||||||
|
{
|
||||||
formatKeys(dict_struct, output_stream, key_columns, requested_rows);
|
formatKeys(dict_struct, output_stream, key_columns, requested_rows);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -767,7 +767,8 @@ void registerDictionaryFlat(DictionaryFactory & factory)
|
|||||||
const DictionaryStructure & dict_struct,
|
const DictionaryStructure & dict_struct,
|
||||||
const Poco::Util::AbstractConfiguration & config,
|
const Poco::Util::AbstractConfiguration & config,
|
||||||
const std::string & config_prefix,
|
const std::string & config_prefix,
|
||||||
DictionarySourcePtr source_ptr) -> DictionaryPtr {
|
DictionarySourcePtr source_ptr) -> DictionaryPtr
|
||||||
|
{
|
||||||
if (dict_struct.key)
|
if (dict_struct.key)
|
||||||
throw Exception{"'key' is not supported for dictionary of layout 'flat'", ErrorCodes::UNSUPPORTED_METHOD};
|
throw Exception{"'key' is not supported for dictionary of layout 'flat'", ErrorCodes::UNSUPPORTED_METHOD};
|
||||||
|
|
||||||
|
@ -771,7 +771,8 @@ void registerDictionaryHashed(DictionaryFactory & factory)
|
|||||||
const DictionaryStructure & dict_struct,
|
const DictionaryStructure & dict_struct,
|
||||||
const Poco::Util::AbstractConfiguration & config,
|
const Poco::Util::AbstractConfiguration & config,
|
||||||
const std::string & config_prefix,
|
const std::string & config_prefix,
|
||||||
DictionarySourcePtr source_ptr) -> DictionaryPtr {
|
DictionarySourcePtr source_ptr) -> DictionaryPtr
|
||||||
|
{
|
||||||
if (dict_struct.key)
|
if (dict_struct.key)
|
||||||
throw Exception{"'key' is not supported for dictionary of layout 'hashed'", ErrorCodes::UNSUPPORTED_METHOD};
|
throw Exception{"'key' is not supported for dictionary of layout 'hashed'", ErrorCodes::UNSUPPORTED_METHOD};
|
||||||
|
|
||||||
|
@ -694,7 +694,8 @@ void registerDictionaryRangeHashed(DictionaryFactory & factory)
|
|||||||
const DictionaryStructure & dict_struct,
|
const DictionaryStructure & dict_struct,
|
||||||
const Poco::Util::AbstractConfiguration & config,
|
const Poco::Util::AbstractConfiguration & config,
|
||||||
const std::string & config_prefix,
|
const std::string & config_prefix,
|
||||||
DictionarySourcePtr source_ptr) -> DictionaryPtr {
|
DictionarySourcePtr source_ptr) -> DictionaryPtr
|
||||||
|
{
|
||||||
if (dict_struct.key)
|
if (dict_struct.key)
|
||||||
throw Exception{"'key' is not supported for dictionary of layout 'range_hashed'", ErrorCodes::UNSUPPORTED_METHOD};
|
throw Exception{"'key' is not supported for dictionary of layout 'range_hashed'", ErrorCodes::UNSUPPORTED_METHOD};
|
||||||
|
|
||||||
|
@ -795,7 +795,8 @@ void registerDictionaryTrie(DictionaryFactory & factory)
|
|||||||
const DictionaryStructure & dict_struct,
|
const DictionaryStructure & dict_struct,
|
||||||
const Poco::Util::AbstractConfiguration & config,
|
const Poco::Util::AbstractConfiguration & config,
|
||||||
const std::string & config_prefix,
|
const std::string & config_prefix,
|
||||||
DictionarySourcePtr source_ptr) -> DictionaryPtr {
|
DictionarySourcePtr source_ptr) -> DictionaryPtr
|
||||||
|
{
|
||||||
if (!dict_struct.key)
|
if (!dict_struct.key)
|
||||||
throw Exception{"'key' is required for dictionary of layout 'ip_trie'", ErrorCodes::BAD_ARGUMENTS};
|
throw Exception{"'key' is required for dictionary of layout 'ip_trie'", ErrorCodes::BAD_ARGUMENTS};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user