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

Function getAllTableNames

src/DataTypes/NestedUtils.cpp:598–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596
597
598std::unordered_set<String> getAllTableNames(const Block & block, bool to_lower_case)
599{
600 std::unordered_set<String> nested_table_names;
601 for (const auto & name : block.getNames())
602 {
603 auto nested_table_name = Nested::extractTableName(name);
604 if (to_lower_case)
605 boost::to_lower(nested_table_name);
606
607 if (!nested_table_name.empty())
608 nested_table_names.insert(std::move(nested_table_name));
609 }
610 return nested_table_names;
611}
612
613Names getAllNestedColumnsForTable(const Block & block, const std::string & table_name)
614{

Calls 4

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

Tested by

no test coverage detected