Apache calcite

Clone this repo:
  1. e2f87a3 [CALCITE-3320] Use transitional x/xerrors package when working with errors by Francis Chuang · 4 months ago master
  2. 1ff0ccf [CALCITE-2499] Drop support for dep by Francis Chuang · 4 months ago
  3. 74c188d [CALCITE-3356] Use Github Actions for continuous integration by Francis Chuang · 4 months ago
  4. 7a35be7 [CALCITE-3275] add nil checks to error parsing (Tino Rusch). by Tino Rusch · 5 months ago
  5. 9e0d6f5 [CALCITE-3264] Add catch-all type for unknown types in all adapters instead of panic (Tino Rusch). by Tino Rusch · 5 months ago

Apache Avatica/Phoenix SQL Driver

GoDoc Build Status

Apache Calcite's Avatica Go is a Go database/sql driver for the Avatica server.

Avatica is a sub-project of Apache Calcite.

Quick Start

If you are using Go 1.10 and below, install using dep:

$ dep ensure -add github.com/apache/calcite-avatica-go

If you are using Go 1.11 and above, install using Go modules:

$ go get github.com/apache/calcite-avatica-go

The Phoenix/Avatica driver implements Go's database/sql/driver interface, so, import the database/sql package and the driver:

import "database/sql"
import _ "github.com/apache/calcite-avatica-go/v4"

db, err := sql.Open("avatica", "http://localhost:8765")

Then simply use the database connection to query some data, for example:

rows := db.Query("SELECT COUNT(*) FROM test")

For more details, see the home page.

Release notes for all published versions are available on the history page.


We do not use Github to file issues. Please create an issue on Calcite's JIRA and select avatica-go as the component.