This issue happens on production of one user that enabled Sentry:

![Screenshot_20210303_002028](https://user-images.githubusercontent.com/18581488/109716945-7f9a1200-7bb6-11eb-8cf4-1080ad535d18.png)

Build id: 49938CCB63EE2A4E16CF0528307EE15F08469219.
.attach = query.attach,
        .has_force_restore_data_flag = has_force_restore_data_flag
    };
    auto res = storages.at(name).creator_fn(arguments);
    if (!empty_engine_args.empty())
    {
        
        assert(storage_def && storage_def->engine && !storage_def->engine->arguments);
        storage_def->engine->arguments = std::make_shared<ASTExpressionList>();
        storage_def->engine->children.push_back(storage_def->engine->arguments);
        storage_def->engine->arguments->children = empty_engine_args;
    }
    if (local_context.hasQueryContext() && context.getSettingsRef().log_queries)
        local_context.getQueryContext().addQueryFactoriesInfo(Context::QueryLogFactories::Storage, name);
    return res;
}
StorageFactory & StorageFactory::instance()
{
    static StorageFactory ret;
    return ret;
}
AccessType StorageFactory::getSourceAccessType(const String & table_engine) const
{
    auto it = storages.find(table_engine);
    if (it == storages.end())
        return AccessType::NONE;
    return it->second.features.source_access_type;
}
}