(you don't have to strictly follow this form)

**Describe the bug**
A link to the report: https://s3.amazonaws.com/clickhouse-test-reports/35466/d81c58b5d9be45ac69c3859b5cbe97080711f6d9/fuzzer_astfuzzerubsan,actions//report.html
The commit: https://github.com/ClickHouse/ClickHouse/commit/d81c58b5d9be45ac69c3859b5cbe97080711f6d9
need_analyze_again = true;
    }
    if (need_analyze_again)
    {
        LOG_TRACE(log, "Running 'analyze' second time");
        
        subquery_for_sets = std::move(query_analyzer->getSubqueriesForSets());
        prepared_sets = query_info.sets.empty() ? query_analyzer->getPreparedSets() : query_info.sets;
        
        
        analyze( false);
    }
    
    if (query.prewhere() && !query.where())
        analysis_result.prewhere_info->need_filter = true;
    if (table_id && got_storage_from_query && !joined_tables.isLeftTableFunction())
    {
        
        
        
        checkAccessRightsForSelect(context, table_id, metadata_snapshot, *syntax_analyzer_result);
        
        if (shouldIgnoreQuotaAndLimits(table_id) && (joined_tables.tablesCount() <= 1))
        {
            options.ignore_quota = true;
            options.ignore_limits = true;
        }
    }
    
    if (storage)