Apache Calcite Go

Clone this repo:
  1. 9317273 [CALCITE-7136] Add Support for Druid Double Types by Sean Robertshaw · 3 weeks ago main
  2. ebc7707 Bump golang.org/x/net from 0.36.0 to 0.38.0 by dependabot[bot] · 5 months ago
  3. 9a00d84 Bump golang.org/x/net from 0.33.0 to 0.36.0 by dependabot[bot] · 6 months ago
  4. 28aebdc Update website for 5.4.0 release by Francis Chuang · 6 months ago
  5. f0d392b [CALCITE-6863] Release Avatica-Go 5.4.0 by Francis Chuang · 6 months ago rel/v5.4.0 v5.4.0 v5.4.0-rc0

Apache Avatica/Phoenix SQL Driver

Go Reference 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

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/v5"

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.

Testing

For instructions on how to run tests for the project, please see our testing guide.

Issues

We do not use Github to file issues. Please create an issue on Calcite's JIRA and select avatica-go as the component. For further information, please see the JIRA accounts guide.