From b8218d64b8088275f049ed75e9adb9c92be166ed Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 12 Mar 2014 22:20:03 +0400 Subject: [PATCH] dbms: Fixed accidentially introduced error [#METR-10377]. --- dbms/include/DB/Columns/ColumnSet.h | 3 +++ dbms/include/DB/Common/VirtualColumnUtils.h | 1 - dbms/src/Interpreters/ExpressionAnalyzer.cpp | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dbms/include/DB/Columns/ColumnSet.h b/dbms/include/DB/Columns/ColumnSet.h index a1abbb8af71..32346ac5da9 100644 --- a/dbms/include/DB/Columns/ColumnSet.h +++ b/dbms/include/DB/Columns/ColumnSet.h @@ -16,6 +16,9 @@ class ColumnSet : public IColumnDummy public: ColumnSet(size_t s_, SetPtr data_) : IColumnDummy(s_), data(data_) {} + /// Столбец не константный. Иначе столбец будет использоваться в вычислениях в ExpressionActions::prepare, когда множество из подзапроса ещё не готово. + bool isConst() const { return false; } + std::string getName() const { return "ColumnSet"; } ColumnPtr cloneDummy(size_t s_) const { return new ColumnSet(s_, data); } diff --git a/dbms/include/DB/Common/VirtualColumnUtils.h b/dbms/include/DB/Common/VirtualColumnUtils.h index 2e00b0d2b82..c6a2328eb61 100644 --- a/dbms/include/DB/Common/VirtualColumnUtils.h +++ b/dbms/include/DB/Common/VirtualColumnUtils.h @@ -10,7 +10,6 @@ #include #include #include -#include #include namespace DB diff --git a/dbms/src/Interpreters/ExpressionAnalyzer.cpp b/dbms/src/Interpreters/ExpressionAnalyzer.cpp index 36567103bae..4d06a422031 100644 --- a/dbms/src/Interpreters/ExpressionAnalyzer.cpp +++ b/dbms/src/Interpreters/ExpressionAnalyzer.cpp @@ -1229,9 +1229,7 @@ Sets ExpressionAnalyzer::getSetsWithSubqueries() { Sets res; for (auto & s : sets_with_subqueries) - { res.push_back(s.second); - } return res; }