| 144 | } |
| 145 | |
| 146 | StoragePtr DatabaseCnchMaterializedMySQL::tryGetTable(const String & name, ContextPtr local_context) const |
| 147 | { |
| 148 | StoragePtr nested_storage = DatabaseCnch::tryGetTable(name, local_context); |
| 149 | if (!nested_storage) |
| 150 | return {}; |
| 151 | |
| 152 | if (!MaterializeMySQLSyncThread::isMySQLSyncThread() && !local_context->getSettings().force_manipulate_materialized_mysql_table) |
| 153 | return std::make_shared<StorageMaterializeMySQL>(std::move(nested_storage), this); |
| 154 | |
| 155 | return nested_storage; |
| 156 | } |
| 157 | |
| 158 | DatabaseTablesIteratorPtr DatabaseCnchMaterializedMySQL::getTablesIterator(ContextPtr local_context, const FilterByNameFunction & filter_by_table_name) |
| 159 | { |
nothing calls this directly
no test coverage detected