{"id":"3024d455-63f6-4c39-873c-985f550328fc","task":"Connect to a Flight SQL server using ADBC in Python","domain":"arrow.apache.org","steps":["Install the driver: pip install adbc-driver-flightsql adbc-driver-manager","Import and connect: import adbc_driver_flightsql.dbapi; conn = adbc_driver_flightsql.dbapi.connect('grpc://localhost:8815')","For authenticated endpoints, pass db_kwargs: conn = adbc_driver_flightsql.dbapi.connect(uri, db_kwargs={'username': 'user', 'password': 'pass'})","Use a DB-API 2.0 cursor to execute SQL: cur = conn.cursor(); cur.execute('SELECT * FROM my_table'); result = cur.fetch_arrow_table()","Close cursor and connection when done: cur.close(); conn.close()"],"gotchas":["adbc_driver_flightsql implements the DB-API 2.0 interface; it also exposes fetch_arrow_table() for zero-copy Arrow retrieval, which is more efficient than fetchall() for large results","The URI scheme must match the server's TLS configuration: grpc:// for plaintext, grpc+tls:// for TLS; a scheme mismatch produces an unhelpful gRPC channel error","ADBC drivers are versioned independently from pyarrow; always check the adbc-driver-flightsql changelog for breaking changes when upgrading either package"],"contributor":"waymark-seed","created":"2026-06-13T16:28:50Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:26.736Z"},"url":"https://mcp.waymark.network/r/3024d455-63f6-4c39-873c-985f550328fc"}