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

Function dumpSortDescription

src/Core/SortDescription.cpp:33–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void dumpSortDescription(const SortDescription & description, ExplainFormatSettings & settings)
34{
35 auto & out = settings.out;
36 bool first = true;
37
38 for (const auto & desc : description)
39 {
40 if (!first)
41 out << ", ";
42 first = false;
43
44 out << (settings.pretty ? QueryPlanFormat::formatColumnPretty(desc.column_name, settings.pretty_names) : desc.column_name);
45
46 if (desc.direction > 0)
47 out << " ASC";
48 else
49 out << " DESC";
50
51 if (desc.with_fill)
52 out << " WITH FILL";
53 }
54}
55
56void SortColumnDescription::explain(JSONBuilder::JSONMap & map) const
57{

Callers 9

FillingTransformMethod · 0.85
describeActionsMethod · 0.85
describeActionsMethod · 0.85
explainStepFunction · 0.85
describeActionsMethod · 0.85
describeActionsMethod · 0.85
describeActionsMethod · 0.85
dumpMethod · 0.85

Calls 2

formatColumnPrettyFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected