MCPcopy Create free account
hub / github.com/ByConity/ByConity / getAllTableNames

Function getAllTableNames

src/DataTypes/NestedUtils.cpp:232–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232std::unordered_set<String> getAllTableNames(const Block & block, bool to_lower_case)
233{
234 std::unordered_set<String> nested_table_names;
235 for (const auto & name : block.getNames())
236 {
237 auto nested_table_name = Nested::extractTableName(name);
238 if (to_lower_case)
239 boost::to_lower(nested_table_name);
240
241 if (!nested_table_name.empty())
242 nested_table_names.insert(std::move(nested_table_name));
243 }
244 return nested_table_names;
245}
246
247}
248

Callers 2

arrowSchemaToCHHeaderMethod · 0.85
getColumnIndicesMethod · 0.85

Calls 4

extractTableNameFunction · 0.85
getNamesMethod · 0.45
emptyMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected