| 154 | } |
| 155 | |
| 156 | std::string Chunk::dumpStructure() const |
| 157 | { |
| 158 | WriteBufferFromOwnString out; |
| 159 | bool first = true; |
| 160 | for (const auto & column : columns) |
| 161 | { |
| 162 | if (!first) |
| 163 | out << ", "; |
| 164 | out << column->dumpStructure(); |
| 165 | first = false; |
| 166 | } |
| 167 | |
| 168 | return out.str(); |
| 169 | } |
| 170 | |
| 171 | void Chunk::append(const Chunk & chunk) |
| 172 | { |