Added fake range for ASTIdentifier in order to fix multiple global in. [#CLICKHOUSE-3734]

This commit is contained in:
Nikolai Kochetov 2018-05-18 20:27:58 +03:00
parent d0341077ee
commit 5e22f19258
2 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,7 @@ public:
Kind kind;
ASTIdentifier(const String & name_, const Kind kind_ = Column)
: name(name_), kind(kind_) {}
: name(name_), kind(kind_) { range = StringRange(name.data(), name.data() + name.size()); }
/** Get the text that identifies this element. */
String getID() const override { return "Identifier_" + name; }

View File

@ -183,6 +183,7 @@ BlockInputStreams StorageMerge::read(
SelectQueryInfo modified_query_info;
modified_query_info.query = modified_query_ast;
modified_query_info.sets = query_info.sets;
BlockInputStreams source_streams;