mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Update CassandraDictionarySource.cpp
This commit is contained in:
parent
5f0fdd64fe
commit
4a464d18be
@ -25,9 +25,10 @@ void registerDictionarySourceCassandra(DictionarySourceFactory & factory)
|
||||
#if USE_CASSANDRA
|
||||
setupCassandraDriverLibraryLogging(CASS_LOG_INFO);
|
||||
|
||||
global_context->getRemoteHostFilter().checkHostAndPort(config.getString(config_prefix + ".host"), toString(config.getUInt(config_prefix + ".port", 0)));
|
||||
auto source_config_prefix = config_prefix + ".cassandra";
|
||||
global_context->getRemoteHostFilter().checkHostAndPort(config.getString(source_config_prefix + ".host"), toString(config.getUInt(source_config_prefix + ".port", 0)));
|
||||
|
||||
return std::make_unique<CassandraDictionarySource>(dict_struct, config, config_prefix + ".cassandra", sample_block);
|
||||
return std::make_unique<CassandraDictionarySource>(dict_struct, config, source_config_prefix, sample_block);
|
||||
#else
|
||||
throw Exception(ErrorCodes::SUPPORT_IS_DISABLED,
|
||||
"Dictionary source of type `cassandra` is disabled because ClickHouse was built without cassandra support.");
|
||||
|
Loading…
Reference in New Issue
Block a user