Fix storage buffer metadata

This commit is contained in:
alesapin 2020-06-18 14:42:48 +03:00
parent 1a69c3234a
commit c8a58299ac

View File

@ -179,7 +179,7 @@ Pipes StorageBuffer::read(
if (dst_has_same_structure) if (dst_has_same_structure)
{ {
if (query_info.order_optimizer) if (query_info.order_optimizer)
query_info.input_order_info = query_info.order_optimizer->getInputOrder(destination, metadata_snapshot); query_info.input_order_info = query_info.order_optimizer->getInputOrder(destination, destination_metadata_snapshot);
/// The destination table has the same structure of the requested columns and we can simply read blocks from there. /// The destination table has the same structure of the requested columns and we can simply read blocks from there.
pipes_from_dst = destination->read( pipes_from_dst = destination->read(