mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
051dddd8df
Goes from rebuilding 483 objects to 165 when it's modified
17 lines
482 B
C++
17 lines
482 B
C++
#include <Interpreters/IdentifierSemantic.h>
|
|
#include <Interpreters/RenameColumnVisitor.h>
|
|
#include <Parsers/ASTIdentifier.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void RenameColumnData::visit(ASTIdentifier & identifier, ASTPtr &) const
|
|
{
|
|
// TODO(ilezhankin): make proper rename
|
|
std::optional<String> identifier_column_name = IdentifierSemantic::getColumnName(identifier);
|
|
if (identifier_column_name && identifier_column_name == column_name)
|
|
identifier.setShortName(rename_to);
|
|
}
|
|
|
|
}
|