Releases: ClickHouse/clickhouse-go
v2.37.2
What's Changed
Other Changes π
- remove dependency on v1, update ch-go by @SpencerTorres in #1580
Full Changelog: v2.37.1...v2.37.2
v2.37.1
What's Changed
Bug fixes π
- Fix Native API HTTP bugs by @SpencerTorres in #1578
- Fixed critical bug with the new HTTP Native API where connections were not being released.
- Also fixed random HTTP 400 errors with large batches over HTTP
Full Changelog: v2.37.0...v2.37.1
v2.37.0
What's Changed
Enhancements π
- Scanning Datetime and Datetime64 into int64 by @vaibhav-kt in #1560
- Supports scanning of Array, IPv4, IPv6, and Map types into Go values that implement the
sql.Scanner
interface. by @zapateo in #1570 - Support HTTP connnections in Native Go interface by @SpencerTorres in #1577 (see details at bottom of release notes!)
Bug fixes π
- fix: Prevent panic on slice map keys by @disq in #1567
- object_json: split JSON tag to remove any trailing omitempty by @dschofie in #1547
- fix: namedValue namedDatevalue usage error by @tosolveit in #1575
- Fix false positives in TestInterfaceArray by @tosolveit in #1572
HTTP in ClickHouse API
This release includes a bug fix / enhancement for the "ClickHouse API" interface. Previously the only way to use HTTP was through the database/sql
interface, but now you can use Protocol: clickhouse.HTTP
in your clickhouse.Open
options.
HTTP still has some limitations to be aware of for things like batch flushing and session context, so be cautious when switching over code to this protocol. Please report any issues you may have with this change. Native protocol shouldn't be affected, but you can downgrade to v2.36.x if you notice any issues.
New Contributors
- @disq made their first contribution in #1567
- @vaibhav-kt made their first contribution in #1560
- @tosolveit made their first contribution in #1572
- @dschofie made their first contribution in #1547
- @zapateo made their first contribution in #1570
Full Changelog: v2.36.0...v2.37.0
v2.36.0
What's Changed
Enhancements π
- Add
Close
function to batch interface by @SpencerTorres in #1566
The batch.Close()
function was added to prevent connections from being leaked by the batch interface. In the previous API, it is possible that an early return (due to return err
or some other cause) would cause the connection to be held until the connection timed out.
Here's an example of using this new function:
batch, err := conn.PrepareBatch(ctx, "INSERT INTO function null('x UInt64') VALUES (1)")
if err != nil { . . . }
// This defer call will make sure the batch is absolutely cleaned up before it falls out of scope.
defer batch.Close()
Users should update their code to call this new function. Depending on your insert logic you may be leaking connections if Send
never gets called.
Full Changelog: v2.35.0...v2.36.0
v2.35.0
What's Changed
Enhancements π
- JWT Authentication by @SpencerTorres in #1538
- Add support for overriding
database
in DSN URL by @kokizzu in #1541
Full Changelog: v2.34.0...v2.35.0
v2.34.0
What's Changed
Enhancements π
- allow appending to Decimal column with
string
by @rutaka-n in #1532 - Enhancements for decimal strings by @SpencerTorres in #1535
Bug fixes π
- Add length check to
FixedString
to prevent panic by @SpencerTorres in #1534
Other Changes π
New Contributors
Full Changelog: v2.33.1...v2.34.0
v2.33.1
What's Changed
Bug fixes π
- fix concurrent map write errors with context by @SpencerTorres in #1523
Full Changelog: v2.33.0...v2.33.1
v2.33.0
What's Changed
Enhancements π
- Add handling for nested structs in named tuples by @Exca-DK in #1500
- Add option to control MaxConnsPerHost for http.Transport by @holycheater in #1517
Bug fixes π
- fix ConnOpenRandom strategy, issue: #1509 by @PalanQu in #1510
- fix: preserve nil elements in map by @SpencerTorres in #1516
New Contributors
- @PalanQu made their first contribution in #1510
- @Exca-DK made their first contribution in #1500
- @holycheater made their first contribution in #1517
Full Changelog: v2.32.2...v2.33.0
v2.32.2
What's Changed
Bug Fixes π
- fix: decode prefix of nested columns in Variant by @SpencerTorres in #1506
Full Changelog: v2.32.1...v2.32.2
v2.32.1
What's Changed
Bug Fixes π
- fix: enable Array() support for Variant, Dynamic, JSON by @SpencerTorres in #1501
Full Changelog: v2.32.0...v2.32.1