Update StorageJoin.cpp

This commit is contained in:
alexey-milovidov 2020-09-19 19:38:36 +03:00 committed by GitHub
parent 76147cc0c1
commit cd7354117c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ void registerStorageJoin(StorageFactory & factory)
auto join_overflow_mode = settings.join_overflow_mode;
auto join_any_take_last_row = settings.join_any_take_last_row;
auto old_any_join = settings.any_join_distinct_right_table_keys;
bool persistent_ = true;
bool persistent = true;
if (args.storage_def && args.storage_def->settings)
{
@ -141,7 +141,7 @@ void registerStorageJoin(StorageFactory & factory)
{
auto join_settings = std::make_unique<JoinSettings>();
join_settings->loadFromQuery(*args.storage_def);
persistent_ = join_settings->persistent;
persistent = join_settings->persistent;
}
else
throw Exception(
@ -226,7 +226,7 @@ void registerStorageJoin(StorageFactory & factory)
args.constraints,
join_any_take_last_row,
args.context,
persistent_);
persistent);
};
factory.registerStorage("Join", creator_fn, StorageFactory::StorageFeatures{ .supports_settings = true, });