Skip to main content

Golang SDK for


go get

Connect to spice runtime

Import the package:

import ""

Create a SpiceClient using default configuration:

spice := NewSpiceClient()
defer spice.Close()

Or pass custom flight address:

if err := spice.Init(
); err != nil {
panic(fmt.Errorf("error initializing SpiceClient: %w", err))

Execute a query and get back an Apache Arrow Reader:

reader, err := spice.Query(
"SELECT trip_distance, total_amount FROM taxi_trips ORDER BY trip_distance DESC LIMIT 10;"
if err != nil {
panic(fmt.Errorf("error querying: %w", err))
defer reader.Release()