| 596 | |
| 597 | |
| 598 | std::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 | |
| 613 | Names getAllNestedColumnsForTable(const Block & block, const std::string & table_name) |
| 614 | { |
no test coverage detected