This is an automated email from the ASF dual-hosted git repository. francischuang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/calcite-avatica-go.git
The following commit(s) were added to refs/heads/master by this push: new 0e3f5df [CALCITE-4078] Prepare for 5.0.0 release 0e3f5df is described below commit 0e3f5df582a09ac90869611b2d0a64b9f9b566e2 Author: Francis Chuang <francischu...@apache.org> AuthorDate: Tue Jun 23 11:12:17 2020 +1000 [CALCITE-4078] Prepare for 5.0.0 release --- NOTICE | 2 +- README.md | 2 +- adapter.go | 6 +-- class_mappings.go | 2 +- connection.go | 5 +- driver.go | 10 ++-- driver_phoenix_test.go | 2 +- generic/generic.go | 6 +-- go.mod | 2 +- hsqldb/hsqldb.go | 6 +-- http_client.go | 2 +- internal/column.go | 2 +- phoenix/phoenix.go | 6 +-- rows.go | 4 +- site/_docs/go_client_reference.md | 2 +- site/_docs/go_history.md | 61 ++++++++++++++++++++++ site/_posts/2019-05-16-release-avatica-go-4.0.0.md | 2 +- statement.go | 2 +- transaction.go | 2 +- 19 files changed, 94 insertions(+), 32 deletions(-) diff --git a/NOTICE b/NOTICE index 1e33947..cce4404 100644 --- a/NOTICE +++ b/NOTICE @@ -1,5 +1,5 @@ Apache Calcite -- Avatica-Go -Copyright 2012-2019 The Apache Software Foundation +Copyright 2012-2020 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). diff --git a/README.md b/README.md index 86c307f..596dd7d 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ The Phoenix/Avatica driver implements Go's `database/sql/driver` interface, so, ``` import "database/sql" -import _ "github.com/apache/calcite-avatica-go/v4" +import _ "github.com/apache/calcite-avatica-go/v5" db, err := sql.Open("avatica", "http://localhost:8765") ``` diff --git a/adapter.go b/adapter.go index 090fe1a..a880503 100644 --- a/adapter.go +++ b/adapter.go @@ -18,9 +18,9 @@ package avatica import ( - "github.com/apache/calcite-avatica-go/v4/errors" - "github.com/apache/calcite-avatica-go/v4/internal" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/errors" + "github.com/apache/calcite-avatica-go/v5/internal" + "github.com/apache/calcite-avatica-go/v5/message" ) type Adapter interface { diff --git a/class_mappings.go b/class_mappings.go index 90420f0..b2331c1 100644 --- a/class_mappings.go +++ b/class_mappings.go @@ -20,7 +20,7 @@ package avatica import ( "strings" - avaticaMessage "github.com/apache/calcite-avatica-go/v4/message" + avaticaMessage "github.com/apache/calcite-avatica-go/v5/message" "github.com/golang/protobuf/proto" "golang.org/x/xerrors" ) diff --git a/connection.go b/connection.go index d7d1d5b..8cd8ac4 100644 --- a/connection.go +++ b/connection.go @@ -20,8 +20,9 @@ package avatica import ( "context" "database/sql/driver" - "github.com/apache/calcite-avatica-go/v4/errors" - "github.com/apache/calcite-avatica-go/v4/message" + + "github.com/apache/calcite-avatica-go/v5/errors" + "github.com/apache/calcite-avatica-go/v5/message" "golang.org/x/xerrors" ) diff --git a/driver.go b/driver.go index 9a41544..59f3dcb 100644 --- a/driver.go +++ b/driver.go @@ -23,7 +23,7 @@ Quickstart Import the database/sql package along with the avatica driver. import "database/sql" - import _ "github.com/apache/calcite-avatica-go/v4" + import _ "github.com/apache/calcite-avatica-go/v5" db, err := sql.Open("avatica", "http://phoenix-query-server:8765") @@ -37,10 +37,10 @@ import ( "database/sql/driver" "net/http" - "github.com/apache/calcite-avatica-go/v4/generic" - "github.com/apache/calcite-avatica-go/v4/hsqldb" - "github.com/apache/calcite-avatica-go/v4/message" - "github.com/apache/calcite-avatica-go/v4/phoenix" + "github.com/apache/calcite-avatica-go/v5/generic" + "github.com/apache/calcite-avatica-go/v5/hsqldb" + "github.com/apache/calcite-avatica-go/v5/message" + "github.com/apache/calcite-avatica-go/v5/phoenix" "github.com/hashicorp/go-uuid" "golang.org/x/xerrors" ) diff --git a/driver_phoenix_test.go b/driver_phoenix_test.go index c0df956..0ec2bd6 100644 --- a/driver_phoenix_test.go +++ b/driver_phoenix_test.go @@ -29,7 +29,7 @@ import ( "testing" "time" - "github.com/apache/calcite-avatica-go/v4/errors" + "github.com/apache/calcite-avatica-go/v5/errors" ) func skipTestIfNotPhoenix(t *testing.T) { diff --git a/generic/generic.go b/generic/generic.go index a1ed68d..9017b93 100644 --- a/generic/generic.go +++ b/generic/generic.go @@ -22,9 +22,9 @@ import ( "reflect" "time" - "github.com/apache/calcite-avatica-go/v4/errors" - "github.com/apache/calcite-avatica-go/v4/internal" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/errors" + "github.com/apache/calcite-avatica-go/v5/internal" + "github.com/apache/calcite-avatica-go/v5/message" ) type Adapter struct { diff --git a/go.mod b/go.mod index c542f42..5fc76e0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/apache/calcite-avatica-go/v4 +module github.com/apache/calcite-avatica-go/v5 go 1.12 diff --git a/hsqldb/hsqldb.go b/hsqldb/hsqldb.go index 2ac6f3b..8fa9e8e 100644 --- a/hsqldb/hsqldb.go +++ b/hsqldb/hsqldb.go @@ -22,9 +22,9 @@ import ( "reflect" "time" - "github.com/apache/calcite-avatica-go/v4/errors" - "github.com/apache/calcite-avatica-go/v4/internal" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/errors" + "github.com/apache/calcite-avatica-go/v5/internal" + "github.com/apache/calcite-avatica-go/v5/message" ) type Adapter struct { diff --git a/http_client.go b/http_client.go index e7c5468..8894f81 100644 --- a/http_client.go +++ b/http_client.go @@ -29,7 +29,7 @@ import ( "runtime" "time" - avaticaMessage "github.com/apache/calcite-avatica-go/v4/message" + avaticaMessage "github.com/apache/calcite-avatica-go/v5/message" "github.com/golang/protobuf/proto" "golang.org/x/xerrors" ) diff --git a/internal/column.go b/internal/column.go index ac24257..127f067 100644 --- a/internal/column.go +++ b/internal/column.go @@ -20,7 +20,7 @@ package internal import ( "reflect" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/message" ) type Column struct { diff --git a/phoenix/phoenix.go b/phoenix/phoenix.go index 6ed4448..9bf4a2f 100644 --- a/phoenix/phoenix.go +++ b/phoenix/phoenix.go @@ -24,9 +24,9 @@ import ( "strconv" "time" - "github.com/apache/calcite-avatica-go/v4/errors" - "github.com/apache/calcite-avatica-go/v4/internal" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/errors" + "github.com/apache/calcite-avatica-go/v5/internal" + "github.com/apache/calcite-avatica-go/v5/message" ) type Adapter struct { diff --git a/rows.go b/rows.go index 59258ab..0d4c4cc 100644 --- a/rows.go +++ b/rows.go @@ -23,8 +23,8 @@ import ( "io" "time" - "github.com/apache/calcite-avatica-go/v4/internal" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/internal" + "github.com/apache/calcite-avatica-go/v5/message" ) type resultSet struct { diff --git a/site/_docs/go_client_reference.md b/site/_docs/go_client_reference.md index c8792a6..4da4923 100644 --- a/site/_docs/go_client_reference.md +++ b/site/_docs/go_client_reference.md @@ -49,7 +49,7 @@ The Avatica Go driver implements Go's `database/sql/driver` interface, so, impor {% highlight go %} import "database/sql" -import _ "github.com/apache/calcite-avatica-go/v4" +import _ "github.com/apache/calcite-avatica-go/v5" db, err := sql.Open("avatica", "http://localhost:8765") {% endhighlight %} diff --git a/site/_docs/go_history.md b/site/_docs/go_history.md index a2f9cf1..68153c1 100644 --- a/site/_docs/go_history.md +++ b/site/_docs/go_history.md @@ -28,6 +28,67 @@ For a full list of releases, see Downloads are available on the [downloads page]({{ site.baseurl }}/downloads/avatica-go.html). +## <a href="https://github.com/apache/calcite-avatica-go/releases/tag/v5.0.0">5.0.0</a> / 2020-06-XX +{: #v5-0-0} + +Apache Calcite Avatica Go 5.0.0 is a major release of Avatica Go with a number of improvements and a breaking change. +As Go modules has been available since Go 1.11 (3 versions back as of writing), users of this library should +install it using Go modules as support for dep has been removed. + +This release also introduces the `batching` query string parameter in the DSN, which allows updates to the server using +a prepared statement to be batched together and executed once `Close()` is called on the statement. + +**Breaking change for connection metadata ([CALCITE-3248](https://issues.apache.org/jira/browse/CALCITE-3248)):** +Previously, it is possible to set the HTTP username and password using the `username` and `password` parameters in the +query string of the DSN. These parameters were confusing and didn't signal the intent and effect of the parameters in addition +to clashing with the `avaticaUser` and `avaticaPassword` parameters. The `username` and `password` parameters have now been +removed as CALCITE-3248 implements the [Connector interface](https://golang.org/pkg/database/sql/driver/#Connector) via the +`NewConnector()` method, which allows the driver to be instantiated with a custom HTTP client. Subsequently, it is now +possible to set up the driver with a custom HTTP client and decorate it with the `WithDigestAuth()`, `WithBasicAuth()`, +`WithKerberosAuth()` and `WithAdditionalHeaders()` methods. + +Features and bug fixes + +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3248">CALCITE-3248</a>] + Add Connector implementation and remove `username` and `password` query string parameters from DSN (Tino Rusch) +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3253">CALCITE-3253</a>] + Check server address exists before returning it in an Avatica response error (Tino Rusch) +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3264">CALCITE-3264</a>] + Add catch-all type for unknown types in all adapters instead of panicking (Tino Rusch) +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3275">CALCITE-3275</a>] + Add nil checks to error parsing (Tino Rusch) +* [<a href="https://issues.apache.org/jira/browse/CALCITE-2499">CALCITE-2499</a>] + Drop support for dep +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3320">CALCITE-3320</a>] + Use transitional x/xerrors package when working with errors +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3903">CALCITE-3903</a>] + Upgrade protobuf generation dependencies and regenerate avatica protobufs +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3905">CALCITE-3905</a>] + Upgrade gokrb5 to v8 +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3906">CALCITE-3906</a>] + Pin witch version in tools.go file +* [<a href="https://issues.apache.org/jira/browse/CALCITE-4067">CALCITE-4067</a>] + Add support for ExecuteBatchRequest in prepared statement (chenhualin) +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3359">CALCITE-3359</a>] + Update dependencies +* [<a href="https://issues.apache.org/jira/browse/CALCITE-4078">CALCITE-4078</a>] + Move import path from v4 to v5 for 5.0.0 release + +Tests + +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3356">CALCITE-3356</a>] + Use Github Actions for continuous integration +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3902">CALCITE-3902</a>] + Upgrade Go to 1.13 and 1.14 +* [<a href="https://issues.apache.org/jira/browse/CALCITE-3904">CALCITE-3904</a>] + Upgrade Github Actions dependencies +* [<a href="https://issues.apache.org/jira/browse/CALCITE-4076">CALCITE-4076</a>] + Test against Avatica 1.17.0 and regenerate protobuf + +Web site and documentation: + +* Clean up documentation and remove references to dep + ## <a href="https://github.com/apache/calcite-avatica-go/releases/tag/v4.0.0">4.0.0</a> / 2019-05-16 {: #v4-0-0} diff --git a/site/_posts/2019-05-16-release-avatica-go-4.0.0.md b/site/_posts/2019-05-16-release-avatica-go-4.0.0.md index 9614a72..fda039b 100644 --- a/site/_posts/2019-05-16-release-avatica-go-4.0.0.md +++ b/site/_posts/2019-05-16-release-avatica-go-4.0.0.md @@ -29,7 +29,7 @@ limitations under the License. Apache Calcite Avatica Go 4.0.0 is a major release with numerous improvements and a breaking change for Apache Phoenix. As this a a new major version, users of this package will need to upgrade their import paths to -`"github.com/apache/calcite-avatica-go/v4"`. +`"github.com/apache/calcite-avatica-go/v5"`. **Breaking change for Apache Phoenix ([CALCITE-2763](https://issues.apache.org/jira/browse/CALCITE-2724)):** In Apache Phoenix, null and empty strings are equivalent. For some background on why this is the case, see diff --git a/statement.go b/statement.go index e72b7cf..e54421e 100644 --- a/statement.go +++ b/statement.go @@ -24,7 +24,7 @@ import ( "sync" "time" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/message" "golang.org/x/xerrors" ) diff --git a/transaction.go b/transaction.go index 637d459..58338cb 100644 --- a/transaction.go +++ b/transaction.go @@ -20,7 +20,7 @@ package avatica import ( "context" - "github.com/apache/calcite-avatica-go/v4/message" + "github.com/apache/calcite-avatica-go/v5/message" ) type tx struct {