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

Method describeActions

src/Processors/QueryPlan/DistinctStep.cpp:146–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void DistinctStep::describeActions(FormatSettings & settings) const
147{
148 const String & prefix = settings.detail_prefix;
149 settings.out << prefix << "Columns: ";
150
151 if (columns.empty())
152 settings.out << "none";
153 else
154 {
155 bool first = true;
156 for (const auto & column : columns)
157 {
158 if (!first)
159 settings.out << ", ";
160 first = false;
161
162 settings.out << (settings.pretty ? QueryPlanFormat::formatColumnPretty(column, settings.pretty_names) : column);
163 }
164 }
165
166 settings.out << '\n';
167}
168
169void DistinctStep::describeActions(JSONBuilder::JSONMap & map) const
170{

Callers

nothing calls this directly

Calls 3

formatColumnPrettyFunction · 0.85
emptyMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected