You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "zeodtr (via GitHub)" <gi...@apache.org> on 2024/02/13 04:11:49 UTC

[I] Add `new_from_inner()` to `FlightSqlServiceClient` [arrow-rs]

zeodtr opened a new issue, #5394:
URL: https://github.com/apache/arrow-rs/issues/5394

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   Since `FlightSqlServiceClient` does not provide a constructor function with a `FlightServiceClient`, I cannot configure the `FlightServiceClient`, such as setting `max_decoding_message_size`. Providing `inner_mut()` is not enough, since `FlightServiceClient` only supports configuration through the builder functions. Consequently, I cannot use `FlightSqlServiceClient`.
   
   **Describe the solution you'd like**
   
   Add a constructor function `new_from_inner()` like this:
   
   ```rust
       pub fn new_from_inner(flight_client: FlightServiceClient<Channel>) -> Self {
           Self {
               token: None,
               headers: HashMap::default(),
               flight_client
           }
       }
   ```
   
   **Describe alternatives you've considered**
   
   None.
   
   **Additional context**
   
   None.


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org