https://clickhouse-test-reports.s3.yandex.net/18817/9049599e367bcccd809f45af138452f965b3303a/stress_test_(undefined)/test_run.txt.out.log
{
    auto it = scalars.find(name);
    if (scalars.end() == it)
    {
        
        
        throw Exception("Scalar " + backQuoteIfNeed(name) + " doesn't exist (internal bug)", ErrorCodes::BAD_ARGUMENTS);
    }
    return it->second;
}
Tables Context::getExternalTables() const
{
    assert(global_context != this || getApplicationType() == ApplicationType::LOCAL);
    auto lock = getLock();
    Tables res;
    for (const auto & table : external_tables_mapping)
        res[table.first] = table.second->getTable();
    if (query_context && query_context != this)
    {
        Tables buf = query_context->getExternalTables();
        res.insert(buf.begin(), buf.end());
    }
    else if (session_context && session_context != this)
    {
        Tables buf = session_context->getExternalTables();
        res.insert(buf.begin(), buf.end());
    }
    return res;
}
void Context::addExternalTable(const String & table_name, TemporaryTableHolder && temporary_table)