**Describe the bug**
`SELECT i FROM generateRandom('i Array(Int8)', 1048575, 10, 1048577) LIMIT 1048575`

Memory limit should be respected.
{
        return LogElement::name();
    }
    ASTPtr getCreateTableQuery() override;
protected:
    Poco::Logger * log;
private:
    
    Context & context;
    const StorageID table_id;
    const String storage_def;
    StoragePtr table;
    bool is_prepared = false;
    const size_t flush_interval_milliseconds;
    ThreadFromGlobalPool saving_thread;
    
    std::mutex mutex;
    
    std::vector<LogElement> queue;
    
    
    
    
    uint64_t queue_front_index = 0;
    bool is_shutdown = false;
    bool is_force_prepare_tables = false;
    std::condition_variable flush_event;