mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
auto -> bool
This commit is contained in:
parent
f2fab48440
commit
f194b452e7
@ -3010,9 +3010,9 @@ void InterpreterSelectQuery::ignoreWithTotals()
|
||||
bool InterpreterSelectQuery::forceSelectFinalOnSelectQuery(ASTSelectQuery & query)
|
||||
{
|
||||
// query.tables() is required because not all queries have tables in it, it could be a function.
|
||||
auto is_force_select_final_setting_on = context->getSettingsRef().force_select_final;
|
||||
auto is_final_supported = storage && storage->supportsFinal() && !storage->isRemote() && query.tables();
|
||||
auto is_query_already_final = query.final();
|
||||
bool is_force_select_final_setting_on = context->getSettingsRef().force_select_final;
|
||||
bool is_final_supported = storage && storage->supportsFinal() && !storage->isRemote() && query.tables();
|
||||
bool is_query_already_final = query.final();
|
||||
|
||||
return is_force_select_final_setting_on && !is_query_already_final && is_final_supported;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user