MCPcopy Create free account
hub / github.com/PostHog/duckgres / FlightRowSet

Struct FlightRowSet

server/flightclient/flight_executor.go:491–504  ·  view source on GitHub ↗

FlightRowSet wraps an Arrow Flight RecordBatch reader to implement RowSet.

Source from the content-addressed store, hash-verified

489
490func (e *FlightExecutor) forwardQueryLogEntry(ctx context.Context, entry wire.QueryLogEntry) (err error) {
491 if e.dead.Load() {
492 observe.AddQueryLogDroppedEntries("forward_worker_dead", 1)
493 return nil
494 }
495 if e.client == nil || e.client.Client == nil {
496 observe.AddQueryLogDroppedEntries("forward_unavailable", 1)
497 return nil
498 }
499 defer func() {
500 recoverClientPanic(&err)
501 if err != nil {
502 observe.AddQueryLogDroppedEntries("forward_error", 1)
503 }
504 }()
505
506 payload, err := json.Marshal(wire.WorkerQueryLogPayload{
507 WorkerControlMetadata: wire.WorkerControlMetadata{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected