From 133422d5e7885ce64ae1ff4f41971944343a1d0a Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Wed, 29 Jul 2020 17:14:13 +0300 Subject: [PATCH] Ignore constants for remote query from local replica. --- src/Interpreters/ClusterProxy/SelectStreamFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/ClusterProxy/SelectStreamFactory.cpp b/src/Interpreters/ClusterProxy/SelectStreamFactory.cpp index 51f7e93552a..5c41b4a1fc0 100644 --- a/src/Interpreters/ClusterProxy/SelectStreamFactory.cpp +++ b/src/Interpreters/ClusterProxy/SelectStreamFactory.cpp @@ -80,7 +80,7 @@ QueryPipeline createLocalStream( pipeline.addSimpleTransform([&](const Block & source_header) { return std::make_shared( - source_header, header, ConvertingTransform::MatchColumnsMode::Name); + source_header, header, ConvertingTransform::MatchColumnsMode::Name, true); }); /** Materialization is needed, since from remote servers the constants come materialized.