mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
dbms: better [#METR-11370].
This commit is contained in:
parent
fcc21c5b4c
commit
607485d82a
@ -155,7 +155,7 @@ private:
|
||||
|
||||
void init();
|
||||
|
||||
static NamesAndTypesList::iterator findColumn(const String & name, const NamesAndTypesList & cols);
|
||||
static NamesAndTypesList::iterator findColumn(const String & name, NamesAndTypesList & cols);
|
||||
NamesAndTypesList::iterator findColumn(const String & name) { return findColumn(name, columns); }
|
||||
|
||||
void removeUnusedColumns();
|
||||
|
@ -141,7 +141,7 @@ void ExpressionAnalyzer::init()
|
||||
}
|
||||
|
||||
|
||||
NamesAndTypesList::iterator ExpressionAnalyzer::findColumn(const String & name, const NamesAndTypesList & cols)
|
||||
NamesAndTypesList::iterator ExpressionAnalyzer::findColumn(const String & name, NamesAndTypesList & cols)
|
||||
{
|
||||
return std::find_if(cols.begin(), cols.end(),
|
||||
[&](const NamesAndTypesList::value_type & val) { return val.first == name; });
|
||||
|
Loading…
Reference in New Issue
Block a user