alamb opened a new issue, #3908:
URL: https://github.com/apache/arrow-datafusion/issues/3908

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   Related to #3887 
   
   
   I want to set configuration options given a session context. Right now I 
need to do it like 🤮 
   
   ```rust
           let session_ctx = SessionContext::new();
   
           {
               // lock scope
               let state = session_ctx.state.write();
               let mut config_options = state.config.config_options.write();
               config_options.set_bool(OPT_PARQUET_PUSHDOWN_FILTERS, true);
               config_options.set_bool(OPT_PARQUET_REORDER_FILTERS, true);
           }
   ```
   
   
   **Describe the solution you'd like**
   
   I would like an API like this:
   ```rust
           let session_ctx = SessionContext::new()
             .with_bool(OPT_PARQUET_PUSHDOWN_FILTERS, true)
             .with_bool(OPT_PARQUET_REORDER_FILTERS, true);
   ```
   
   As well as
   ```rust
           let session_ctx = SessionContext::new();
           session_ctx.set_bool(OPT_PARQUET_PUSHDOWN_FILTERS, true);
           session_ctx.set_bool(OPT_PARQUET_REORDER_FILTERS, true);
   ```                                                                          
            )
   
   
   **Describe alternatives you've considered**
   A clear and concise description of any alternative solutions or features 
you've considered.
   
   **Additional context**
   Add any other context or screenshots about the feature request here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to