mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
Add ignore_force_select_final setting
This commit is contained in:
parent
6a57ea9227
commit
0f6b877073
@ -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) \
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user