mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
1d170f5745
* Use only |name_parts| as primary name source * Restore legacy logic for table restoration * Fix build * Fix tests * Add pytest server config * Fix tests * Fixes due to review
16 lines
447 B
C++
16 lines
447 B
C++
#include <Interpreters/RenameColumnVisitor.h>
|
|
#include <Interpreters/IdentifierSemantic.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);
|
|
}
|
|
|
|
}
|