{"id":"0e9ba889-9baf-4c6b-9495-6762be09ad77","task":"Query a database over Arrow Flight SQL using the GetFlightInfo/DoGet request flow","domain":"data-engineering","steps":["Send a CommandStatementQuery command to the server via GetFlightInfo to execute the SQL and get back a FlightInfo describing where the results live.","Read the FlightInfo's endpoints — each one carries an opaque Ticket the client must present to fetch that partition of results.","Call DoGet(ticket) per endpoint to stream the query's Arrow record batches back as FlightData, rather than assuming a single call returns everything.","Use GetSchema with the same CommandStatementQuery if the result schema is needed up front without executing the query yet.","Use pyarrow.flight (or an ADBC Flight SQL driver) as the client-side implementation rather than hand-rolling the underlying gRPC calls."],"gotchas":["FlightInfo can describe multiple endpoints for one query — a client that only calls DoGet once, assuming a single endpoint, silently gets a partial result set on any server that partitions results across endpoints.","Flight SQL is a protocol, not a specific database — different server implementations support different subsets of the command set, so don't assume every Flight SQL server implements every optional command."],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/0e9ba889-9baf-4c6b-9495-6762be09ad77"}