| 31 | } |
| 32 | |
| 33 | void 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 | |
| 56 | void SortColumnDescription::explain(JSONBuilder::JSONMap & map) const |
| 57 | { |
no test coverage detected