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

Method flatTableColumnPath

src/Client/BuzzHouse/Generator/SQLTable.cpp:183–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void StatementGenerator::flatTableColumnPath(
184 const uint32_t flags, const std::unordered_map<String, SQLColumn> & cols, std::function<bool(const SQLColumn & c)> col_filter)
185{
186 auto & res = ((flags & to_table_entries) != 0) ? this->table_entries
187 : (((flags & to_remote_entries) != 0) ? this->remote_entries : this->entries);
188
189 chassert(res.empty());
190 for (const auto & [key, val] : cols)
191 {
192 if (col_filter(val))
193 {
194 ColumnPathChain cpc(val.nullable, val.special, val.dmod, {});
195
196 collectColumnPaths(val.getColumnName(), val.tp.get(), flags, cpc, res);
197 }
198 }
199}
200
201void StatementGenerator::flatColumnPath(const uint32_t flags, const std::unordered_map<uint32_t, std::unique_ptr<SQLType>> & centries)
202{

Callers 5

dumpTableContentMethod · 0.80
generateExportQueryMethod · 0.80
dumpDictionaryContentMethod · 0.80
generateImportQueryMethod · 0.80

Calls 4

collectColumnPathsFunction · 0.85
emptyMethod · 0.45
getColumnNameMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected