After such successful queries:

```sql
CREATE DATABASE testlazy ENGINE = Lazy(1);
CREATE TABLE testlazy.`таблица_со_странным_названием` (a UInt64, b UInt64) ENGINE = Log;
```
Server failed to restart with error:
```
<Error> Application: filesystem error: in posix_stat: failed to determine attributes for the specified path: File name too long [/home/avogar/tmp/server/metadata/testlazy/%25D1%2582%25D0%25B0%25D0%25B1%25D0%25BB%25D0%25B8%25D1%2586%25D0%25B0_%25D1%2581%25D0%25BE_%25D1%2581%25D1%2582%25D1%2580%25D0%25B0%25D0%25BD%25D0%25BD%25D1%258B%25D0%25BC_%25D0%25BD%25D0%25B0%25D0%25B7%25D0%25B2%25D0%25B0%25D0%25BD%25D0%25B8%25D0%25B5%25D0%25BC.sql]
```

Found in https://github.com/ClickHouse/ClickHouse/pull/27928
create_query->database = database_name;
                if (fs::exists(full_path.string() + detached_suffix))
                {
                    
                    
                    
                    const std::string table_name = file_name.substr(0, file_name.size() - 4);
                    LOG_DEBUG(log, "Skipping permanently detached table {}.", backQuote(table_name));
                    return;
                }
                TableLoadingDependenciesVisitor::Data data;
                data.default_database = metadata.default_database;
                data.create_query = ast;
                data.global_context = getContext();
                TableLoadingDependenciesVisitor visitor{data};
                visitor.visit(ast);
                QualifiedTableName qualified_name{database_name, create_query->table};
                std::lock_guard lock{metadata.mutex};
                metadata.parsed_tables[qualified_name] = ParsedTableMetadata{full_path.string(), ast};
                if (data.dependencies.empty())
                {
                    metadata.independent_database_objects.emplace_back(std::move(qualified_name));
                }
                else
                {
                    for (const auto & dependency : data.dependencies)
                    {
                        metadata.dependencies_info[dependency].dependent_database_objects.push_back(qualified_name);
                        ++metadata.dependencies_info[qualified_name].dependencies_count;
                    }