#include #include #include namespace DB { ASTPtr ASTNameTypePair::clone() const { auto res = std::make_shared(*this); res->children.clear(); if (type) { res->type = type->clone(); res->children.push_back(res->type); } return res; } void ASTNameTypePair::formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const { std::string indent_str = settings.one_line ? "" : std::string(4 * frame.indent, ' '); settings.ostr << indent_str << backQuoteIfNeed(name) << ' '; type->formatImpl(settings, state, frame); } }