Add ignore_force_select_final setting

This commit is contained in:
Arthur Passos 2022-10-21 16:27:59 -03:00
parent 6a57ea9227
commit 0f6b877073
2 changed files with 3 additions and 1 deletions

View File

@ -269,6 +269,8 @@ static constexpr UInt64 operator""_GiB(unsigned long long value)
M(Milliseconds, stream_flush_interval_ms, 7500, "Timeout for flushing data from streaming storages.", 0) \
M(Milliseconds, stream_poll_timeout_ms, 500, "Timeout for polling data from/to streaming storages.", 0) \
\
M(Bool, ignore_force_select_final, false, "Ignores the MT force_select_final setting", 0) \
\
/** Settings for testing hedged requests */ \
M(Milliseconds, sleep_in_send_tables_status_ms, 0, "Time to sleep in sending tables status response in TCPHandler", 0) \
M(Milliseconds, sleep_in_send_data_ms, 0, "Time to sleep in sending data in TCPHandler", 0) \

View File

@ -496,7 +496,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
settings.additional_table_filters, joined_tables.tablesWithColumns().front().table, *context);
if (!query.final() && storage && storage->forceQueryWithFinal())
if (!query.final() && storage && storage->forceQueryWithFinal() && !context->getSettingsRef().ignore_force_select_final)
{
query.setFinal();
}