Update executeQuery.cpp

This commit is contained in:
alexey-milovidov 2020-06-21 21:29:11 +03:00 committed by GitHub
parent fb30629ff2
commit 38b018fa04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ Context removeUserRestrictionsFromSettings(const Context & context, const Settin
{
if (new_settings.force_optimize_skip_unused_shards_nesting == 1)
{
new_settings.force_optimize_skip_unused_shards = 0;
new_settings.force_optimize_skip_unused_shards = false;
new_settings.force_optimize_skip_unused_shards.changed = false;
if (log)
@ -40,7 +40,7 @@ Context removeUserRestrictionsFromSettings(const Context & context, const Settin
}
else
{
new_settings.force_optimize_skip_unused_shards_nesting.value--;
--new_settings.force_optimize_skip_unused_shards_nesting.value;
new_settings.force_optimize_skip_unused_shards_nesting.changed = true;
if (log)
@ -52,7 +52,7 @@ Context removeUserRestrictionsFromSettings(const Context & context, const Settin
{
if (new_settings.optimize_skip_unused_shards_nesting == 1)
{
new_settings.optimize_skip_unused_shards = 0;
new_settings.optimize_skip_unused_shards = false;
new_settings.optimize_skip_unused_shards.changed = false;
if (log)
@ -60,7 +60,7 @@ Context removeUserRestrictionsFromSettings(const Context & context, const Settin
}
else
{
new_settings.optimize_skip_unused_shards_nesting.value--;
--new_settings.optimize_skip_unused_shards_nesting.value;
new_settings.optimize_skip_unused_shards_nesting.changed = true;
if (log)