mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
Fixed error with StorageBuffer and automatic moving conditions to PREWHERE [#METR-20257].
This commit is contained in:
parent
cd7b937342
commit
d1aee1d615
@ -125,7 +125,13 @@ BlockInputStreams StorageBuffer::read(
|
||||
if (destination.get() == this)
|
||||
throw Exception("Destination table is myself. Read will cause infinite loop.", ErrorCodes::INFINITE_LOOP);
|
||||
|
||||
streams_from_dst = destination->read(column_names, query, context, settings, processed_stage, max_block_size, threads);
|
||||
/** Отключаем оптимизацию "перенос в PREWHERE",
|
||||
* так как Buffer не поддерживает PREWHERE.
|
||||
*/
|
||||
Settings modified_settings = settings;
|
||||
modified_settings.optimize_move_to_prewhere = false;
|
||||
|
||||
streams_from_dst = destination->read(column_names, query, context, modified_settings, processed_stage, max_block_size, threads);
|
||||
}
|
||||
|
||||
BlockInputStreams streams_from_buffers;
|
||||
|
Loading…
Reference in New Issue
Block a user