MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / dumpTreeImpl

Method dumpTreeImpl

src/Analyzer/TableFunctionNode.cpp:59–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void TableFunctionNode::dumpTreeImpl(WriteBuffer & buffer, FormatState & format_state, size_t indent) const
60{
61 buffer << std::string(indent, ' ') << "TABLE_FUNCTION id: " << format_state.getNodeId(this);
62
63 if (hasAlias())
64 buffer << ", alias: " << getAlias();
65
66 buffer << ", table_function_name: " << table_function_name;
67
68 if (table_expression_modifiers)
69 {
70 buffer << ", ";
71 table_expression_modifiers->dump(buffer);
72 }
73
74 const auto & arguments = getArguments();
75 if (!arguments.getNodes().empty())
76 {
77 buffer << '\n' << std::string(indent + 2, ' ') << "ARGUMENTS\n";
78 arguments.dumpTreeImpl(buffer, format_state, indent + 4);
79 }
80
81 if (!settings_changes.empty())
82 {
83 buffer << '\n' << std::string(indent + 2, ' ') << "SETTINGS";
84 for (const auto & change : settings_changes)
85 buffer << fmt::format(" {}={}", change.name, fieldToString(change.value));
86 }
87}
88
89bool TableFunctionNode::isEqualImpl(const IQueryTreeNode & rhs, CompareOptions) const
90{

Callers

nothing calls this directly

Calls 6

fieldToStringFunction · 0.85
getNodesMethod · 0.80
formatFunction · 0.50
getNodeIdMethod · 0.45
dumpMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected