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

[PR] Feature gate arrow-flight client [arrow-rs]

leoyvens opened a new pull request, #5683:
URL: https://github.com/apache/arrow-rs/pull/5683

   The `tonic/transport` tonic feature, which has large dependencies like hyper and axum, is now feature gated by a `client` feature on the `arrow-flight` crate. This allows users that only want the flight server to avoid dependency bloat.
   
   # Which issue does this PR close?
   
   Closes https://github.com/apache/arrow-rs/issues/5682.
   
   # Are there any user-facing changes?
   
   This will break users who are using the client. The fix is for them to specify the new feature flag. I did not include the `client` feature in the default features, but I have no particular opinion there.


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold closed pull request #5683: Feature gate arrow-flight client
URL: https://github.com/apache/arrow-rs/pull/5683


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #5683:
URL: https://github.com/apache/arrow-rs/pull/5683#issuecomment-2075379703

   Heh, I figured something like that might be the case having gone down much the same rabbit hole myself, hence my question.
   
   Given that I suggest we keep this as a draft and revisit if tonic continues to not upgrade http.


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "leoyvens (via GitHub)" <gi...@apache.org>.
leoyvens commented on PR #5683:
URL: https://github.com/apache/arrow-rs/pull/5683#issuecomment-2075300691

   For arrow-flight it is truly only required for the high-level client, not for the server since `FlightServiceServer` is just a `Service` trait implementation. But I'm happy to rename the feature gate.
   
   My use-case would be to build a simple server by using `hyper` directly, without axum or the tonic server. I wanted to use hyper 1.0 without waiting for tonic to upgrade, but turns out this isn't possible due to conflicting `http` crate versions between hyper 1.0 and tonic.
   
   That is say, I have not been able to get my use case for this PR actually working. And once tonic upgrades to hyper 1.0 and http 1.0, I suppose the only uneeded dependency would be axum itself, and I wouldn't classify that as a 'real pain'. So I think it's fair if you'd rather not do this at this point.


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #5683:
URL: https://github.com/apache/arrow-rs/pull/5683#issuecomment-2222361448

   The latest tonic release has finally updated to http 1.0, so closing this


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #5683:
URL: https://github.com/apache/arrow-rs/pull/5683#issuecomment-2074987273

   My understanding of the tonic traits was that they were so low level that whilst in theory one could plugin an alternative this wasn't really practical. I'm still confused why this feature flag is called client when AFAICT it is required for servers and clients?


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #5683:
URL: https://github.com/apache/arrow-rs/pull/5683#issuecomment-2072865215

   I'm not against this, but just as an FYI it will need to wait for the next breaking release


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on PR #5683:
URL: https://github.com/apache/arrow-rs/pull/5683#issuecomment-2074070532

   Taking another look at this I'm confused, transport is required both for clients and servers. Axum in particular is a dependency of the server implementation?


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


Re: [PR] Feature gate arrow-flight client [arrow-rs]

Posted by "leoyvens (via GitHub)" <gi...@apache.org>.
leoyvens commented on PR #5683:
URL: https://github.com/apache/arrow-rs/pull/5683#issuecomment-2074961934

   Yes, in tonic, the `transport` feature is required for the "batteries included" server. But arrow-rs does not currently expose a high-level server API that depends on the tonic `Server`. Users need to choose their http2 server, for which they could use the tonic `transport::server`, or not.


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