Remove settings apply when not local

This commit is contained in:
libenwang 2020-07-27 18:10:39 +08:00
parent b5bc7c0d97
commit 76ef196c5d

View File

@ -77,8 +77,8 @@ ClickHouseDictionarySource::ClickHouseDictionarySource(
if (is_local) if (is_local)
{ {
context.setUser(user, password, Poco::Net::SocketAddress("127.0.0.1", 0)); context.setUser(user, password, Poco::Net::SocketAddress("127.0.0.1", 0));
context = copyContextAndApplySettings(path_to_settings, context, config);
} }
context = copyContextAndApplySettings(path_to_settings, context, config);
/// Query context is needed because some code in executeQuery function may assume it exists. /// Query context is needed because some code in executeQuery function may assume it exists.
/// Current example is Context::getSampleBlockCache from InterpreterSelectWithUnionQuery::getSampleBlock. /// Current example is Context::getSampleBlockCache from InterpreterSelectWithUnionQuery::getSampleBlock.