To file issues, please use the Calcite JIRA and select avatica-go
as the component.
To update the procotol buffer definitions, update AVATICA_VER
in gen-protobuf.bat
and gen-protobuf.sh
to match the version you want to generate protobufs for and then run the appropriate script for your platform.
The test suite takes around 4 minutes to run if you run both the Avatica HSQLDB and Apache Phoenix tests.
Install docker and docker-compose.
From the root of the repository, run docker-compose up
.
Install Go.
Install dep: go get -u github.com/golang/dep/cmd/dep
Install dependencies by running dep ensure -v
from the root of the repository.
The test suite requires access to an instance of Avatica running HSQLDB and an instance of Apache Phoenix running the Phoenix Query Server.
You should then set the HSQLDB_HOST
and PHOENIX_HOST
environment variables. For example:
HSQLDB_HOST: http://hsqldb:8765 PHOENIX_HOST: http://phoenix:8765
To select the test suite, export AVATICA_FLAVOR=HSQLDB
for Avatica HSQLDB or AVATICA_FLAVOR=PHOENIX
for Phoenix.
Then run go test -v ./...
from the root of the repository to execute the test suite.
If you have not set up a GPG signing key, set one up by following these instructions.
From the root of the repository, run ./make-release-artifacts.sh
.
You will be asked to select the tag to build release artifacts for. The latest tag is automatically selected if no tag is selected.
The release artifacts will be placed in a folder named for the release within the dist/
folder.