#include #include #include namespace DB { void RenameColumnData::visit(ASTIdentifier & identifier, ASTPtr &) const { // TODO(ilezhankin): make proper rename std::optional identifier_column_name = IdentifierSemantic::getColumnName(identifier); if (identifier_column_name && identifier_column_name == column_name) identifier.setShortName(rename_to); } }