auto -> bool

This commit is contained in:
Arthur Passos 2023-01-31 09:13:57 -03:00
parent f2fab48440
commit f194b452e7

View File

@ -3010,9 +3010,9 @@ void InterpreterSelectQuery::ignoreWithTotals()
bool InterpreterSelectQuery::forceSelectFinalOnSelectQuery(ASTSelectQuery & query) bool InterpreterSelectQuery::forceSelectFinalOnSelectQuery(ASTSelectQuery & query)
{ {
// query.tables() is required because not all queries have tables in it, it could be a function. // 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; bool is_force_select_final_setting_on = context->getSettingsRef().force_select_final;
auto is_final_supported = storage && storage->supportsFinal() && !storage->isRemote() && query.tables(); bool is_final_supported = storage && storage->supportsFinal() && !storage->isRemote() && query.tables();
auto is_query_already_final = query.final(); bool is_query_already_final = query.final();
return is_force_select_final_setting_on && !is_query_already_final && is_final_supported; return is_force_select_final_setting_on && !is_query_already_final && is_final_supported;
} }