init impl flight sql server example#1
Conversation
Change-Id: Ia38c305a7f2f2e309b2e013ff39fd6e3a855d647
Change-Id: I5848753c84dde2efae4b3fb78679f4375f017ca2
| }), | ||
| location: vec![], | ||
| }; | ||
| let info = FlightInfo { |
There was a problem hiding this comment.
It seems like the FlightInfo should be returned as part of the call that is executing the query in do_get_statement -- maybe even handled by the implementation of FlightSqlService
Though I realize it may be somewhat tricky to save the state between what is essentially two calls in flight -- the DoPut (which returns this FlightInfo) and then the GetFlightInfo)
There was a problem hiding this comment.
I don't quite get it. Are you suggesting we merge the get_flight_info_statement and do_get_statement?
No we can't do that, we need to leave that to the client, that's part of the protocol.
You may have noticed the endpoint field, when we implement a distributed sql server, we can have a coordinator to serve the get_flight_info_statement, and then the client can be redirected to connected to multiple endpoints returned by the coordinator, so that not all data need go through one server host. That's just one case we can think of.
Change-Id: Icfd3d2e85d36234188c86d6780ab14332a8de092
Change-Id: I113bc893da91c5b9ddc4ff6f15989c313cd93d43
Change-Id: Iaa37bc710c46eb8bed80c446224ccd6b43fd0120
The logic is identical to datafusion-examples/flight_server.rs, and we can use arrow-cpp-cli to connect to this server