github apache/cassandra-gocql-driver v2.0.0-rc1

pre-releaseone month ago

Removed

  • Drop support for old CQL protocol versions: 1 and 2 (CASSGO-75)
  • Cleanup of deprecated elements (CASSGO-12)
  • Remove global NewBatch function (CASSGO-15)
  • Remove deprecated global logger (CASSGO-24)
  • HostInfo.SetHostID is no longer exported (CASSGO-71)

Added

  • Support vector type (CASSGO-11)
  • Allow SERIAL and LOCAL_SERIAL on SELECT statements (CASSGO-26)
  • Support of sending queries to the specific node with Query.SetHostID() (CASSGO-4)
  • Support for Native Protocol 5. Following protocol changes exposed new API
    Query.SetKeyspace(), Query.WithNowInSeconds(), Batch.SetKeyspace(), Batch.WithNowInSeconds() (CASSGO-1)
  • Externally-defined type registration (CASSGO-43)
  • Add Query and Batch to ObservedQuery and ObservedBatch (CASSGO-73)
  • Add way to create HostInfo objects for testing purposes (CASSGO-71)
  • Add missing Context methods on Query and Batch (CASSGO-81)

Changed

  • Moved the Snappy compressor into its own separate package (CASSGO-33)
  • Move lz4 compressor to lz4 package within the gocql module (CASSGO-32)
  • Don't restrict server authenticator unless PasswordAuthentictor.AllowedAuthenticators is provided (CASSGO-19)
  • Detailed description for NumConns (CASSGO-3)
  • Change Batch API to be consistent with Query() (CASSGO-7)
  • Added Cassandra 4.0 table options support (CASSGO-13)
  • Bumped actions/upload-artifact and actions/cache versions to v4 in CI workflow (CASSGO-48)
  • Keep nil slices in MapScan (CASSGO-44)
  • Improve error messages for marshalling (CASSGO-38)
  • Remove HostPoolHostPolicy from gocql package (CASSGO-21)
  • Standardized spelling of datacenter (CASSGO-35)
  • Refactor HostInfo creation and ConnectAddress() method (CASSGO-45)
  • gocql.Compressor interface changes to follow append-like design (CASSGO-1)
  • Refactoring hostpool package test and Expose HostInfo creation (CASSGO-59)
  • Move "execute batch" methods to Batch type (CASSGO-57)
  • Make Session immutable by removing setters and associated mutex (CASSGO-23)
  • inet columns default to net.IP when using MapScan or SliceMap (CASSGO-43)
  • NativeType removed (CASSGO-43)
  • New and NewWithError removed and replaced with Zero (CASSGO-43)
  • Changes to Query and Batch to make them safely reusable (CASSGO-22)
  • Change logger interface so it supports structured logging and log levels (CASSGO-9)
  • Bump go version in go.mod to 1.19 (CASSGO-34)
  • Change module name to github.com/apache/cassandra-gocql-driver/v2 (CASSGO-70)

Fixed

  • Cassandra version unmarshal fix (CASSGO-49)
  • Retry policy now takes into account query idempotency (CASSGO-27)
  • Don't return error to caller with RetryType Ignore (CASSGO-28)
  • The marshalBigInt return 8 bytes slice in all cases except for big.Int,
    which returns a variable length slice, but should be 8 bytes slice as well (CASSGO-2)
  • Skip metadata only if the prepared result includes metadata (CASSGO-40)
  • Don't panic in MapExecuteBatchCAS if no [applied] column is returned (CASSGO-42)
  • Fix deadlock in refresh debouncer stop (CASSGO-41)
  • Endless query execution fix (CASSGO-50)
  • Accept peers with empty rack (CASSGO-6)
  • Fix tinyint unmarshal regression (CASSGO-82)
  • Vector columns can't be used with SliceMap() (CASSGO-83)

Don't miss a new cassandra-gocql-driver release

NewReleases is sending notifications on new releases.