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

[GitHub] [arrow-rs] alamb opened a new issue, #4281: Add Builder for `FlightInfo`

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

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   When implementing an Arrow Flight based service in Rust (as we did in IOx) it often took a substantial amount of reading in the spec to figure out how to construct the relevant messages
   
   For example:
   * How do you get an arrow `Schema` into the `bytes` you need in the message?
   * what do you set `FlightInfo::total_bytes` to when responding to a FLightSQL command? 
   * What should you sent the FlightEndpoints to?
   
   This adds additional friction to creating new Flight based services in Rust
   
   **Describe the solution you'd like**
   I would like a builder style API (with specific documentation) that helps people craft the correct, common  common case `FlightInfo` messages
   
   ```rust
   let flight_info = FlightInfoBuilder::new()
     .with_schema(schema),
     .with_ticket(ticket)
     .build()
   ```
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features you've considered.
   -->
   
   **Additional context**
   related discussion on https://github.com/apache/arrow-rs/pull/4266/files#r1205473722
   
   


-- 
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


[GitHub] [arrow-rs] tustvold commented on issue #4281: Add Builder for `FlightInfo` to make it easier to create new requests

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on issue #4281:
URL: https://github.com/apache/arrow-rs/issues/4281#issuecomment-1573883899

   `label_issue.py` automatically added labels {'arrow'} from #4266


-- 
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

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


[GitHub] [arrow-rs] alamb closed issue #4281: Add Builder for `FlightInfo` to make it easier to create new requests

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #4281: Add Builder for `FlightInfo` to make it easier to create new requests
URL: https://github.com/apache/arrow-rs/issues/4281


-- 
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

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