Skip to content

Releases: ClickHouse/clickhouse-go

v2.43.0

29 Jan 13:27

Choose a tag to compare

What's Changed

Enhancements πŸŽ‰

Bug fixes πŸ›

  • fix: Fixes the failure againt HEAD of CH server by @kavirajk in #1752
  • fix(time/time64): fix the ScanType of both time and time64 by @kavirajk in #1758

Other Changes πŸ› 

New Contributors

Full Changelog: v2.42.0...v2.43.0

v2.42.0

12 Dec 19:07

Choose a tag to compare

What's Changed

Enhancements πŸŽ‰

  • Add context option to append more ClientInfo to the system.query_log by @SpencerTorres in #1736
  • refactor: idle pool and fix non-deterministic teardown of idle cleanup goroutine by @GeorgeMac in #1687
  • chore: Improve EOF error messages. by @kavirajk in #1723
    NOTE now direct comparision of err == io.EOF won't work, use errors.Is(err, io.EOF
  • feat: Add support for proper exception handling by @kavirajk in #1694

Bug Fixes πŸ›

Other Changes πŸ› 

New Contributors

Full Changelog: v2.41.0...v2.42.0

v2.41.0

20 Nov 03:58

Choose a tag to compare

What's Changed

Enhancements πŸŽ‰

Bug fixes πŸ›

Other Changes πŸ› 

  • chore: Remove unused bash script by @kavirajk in #1663
  • chore: Remove license header from each go file by @kavirajk in #1662
  • Bump github.com/paulmach/orb from 0.11.1 to 0.12.0 by @dependabot[bot] in #1664
  • Bump github.com/testcontainers/testcontainers-go from 0.38.0 to 0.39.0 by @dependabot[bot] in #1666
  • Bump github.com/docker/docker from 28.4.0+incompatible to 28.5.0+incompatible by @dependabot[bot] in #1676
  • Bump github.com/docker/docker from 28.5.0+incompatible to 28.5.1+incompatible by @dependabot[bot] in #1679
  • Bump golang.org/x/net from 0.44.0 to 0.46.0 by @dependabot[bot] in #1683
  • Bump github.com/ClickHouse/ch-go from 0.68.0 to 0.69.0 by @dependabot[bot] in #1678
  • chore: Update contributing guide and docker compose stack by @erezrokah in #1684
  • chore: Upgrade Go toolchain to 1.25.x by @kavirajk in #1689
  • Bump github.com/docker/docker from 28.5.1+incompatible to 28.5.2+incompatible by @dependabot[bot] in #1706
  • Bump github.com/testcontainers/testcontainers-go from 0.39.0 to 0.40.0 by @dependabot[bot] in #1705
  • Bump golang.org/x/net from 0.46.0 to 0.47.0 by @dependabot[bot] in #1711

New Contributors

Full Changelog: v2.40.3...v2.41.0

v2.40.3

13 Sep 03:44

Choose a tag to compare

What's Changed

Other Changes πŸ› 

New Contributors

Full Changelog: v2.40.2...v2.40.3

v2.40.2

13 Sep 01:56

Choose a tag to compare

What's Changed

Other Changes πŸ› 

New Contributors

Full Changelog: v2.40.1...v2.40.2

v2.40.1

30 Jul 10:18

Choose a tag to compare

What's Changed

Bug fixes πŸ›

Full Changelog: v2.40.0...v2.40.1

v2.40.0

30 Jul 08:40

Choose a tag to compare

What's Changed

Enhancements πŸŽ‰

  • support database/sql scanning json into string/[]byte/json.RawMessage by @SpencerTorres in #1623

Bug fixes πŸ›

Other Changes πŸ› 

  • Bump github.com/docker/docker from 28.3.2+incompatible to 28.3.3+incompatible by @dependabot[bot] in #1621

Full Changelog: v2.39.0...v2.40.0

v2.39.0

23 Jul 05:33

Choose a tag to compare

What's Changed

Bug fixes πŸ›

Read Timeout behavior changes

This bug fix has potential to affect longer running queries, ensure you're setting clickhouse.Options ReadTimeout to a reasonable value, and that your context.WithDeadline is also set to a reasonable value. The read timeout will now be applied to all blocks, previously it was only set for the first block.

New Contributors

Full Changelog: v2.38.1...v2.39.0

v2.38.1

23 Jul 03:10

Choose a tag to compare

What's Changed

Bug fixes πŸ›

Full Changelog: v2.38.0...v2.38.1

v2.38.0

22 Jul 02:26

Choose a tag to compare

What's Changed

Enhancements πŸŽ‰

Bug fixes πŸ›

Other Changes πŸ› 

  • Bump github.com/andybalholm/brotli from 1.1.1 to 1.2.0 by @dependabot[bot] in #1581
  • Bump github.com/docker/docker from 28.2.2+incompatible to 28.3.0+incompatible by @dependabot[bot] in #1583
  • Bump go.opentelemetry.io/otel/trace from 1.36.0 to 1.37.0 by @dependabot[bot] in #1584
  • Bump github.com/docker/docker from 28.3.0+incompatible to 28.3.1+incompatible by @dependabot[bot] in #1585
  • Bump github.com/docker/docker from 28.3.1+incompatible to 28.3.2+incompatible by @dependabot[bot] in #1593
  • Bump golang.org/x/net from 0.41.0 to 0.42.0 by @dependabot[bot] in #1595
  • add HTTP wait condition for container tests by @SpencerTorres in #1604
  • include server revision in block/column parsing by @SpencerTorres in #1605
  • Bump github.com/testcontainers/testcontainers-go from 0.37.0 to 0.38.0 by @dependabot[bot] in #1603
  • docs: add client configuration options by @shivanshuraj1333 in #1598
  • Bump github.com/ClickHouse/ch-go from 0.66.1 to 0.67.0 by @dependabot[bot] in #1609

Upgrades for Dynamic / JSON

Dynamic and JSON were never fully functional in previous versions. If you exceeded the maximum types for Dynamic, the data would become unreadable since it was encoded as a single SharedVariant type. Same for JSON, if you exceeded the maximum dynamic paths the data would also become unreadable since it was stored in a SharedData structure.

In ClickHouse 25.6, a setting was added that abstracts these structures away so that clients don't have to implement them.
To begin using Dynamic and JSON to their fullest ability, upgrade to ClickHouse 25.6 along with clickhouse-go v2.38.0, and enable output_format_native_use_flattened_dynamic_and_json_serialization in your connection settings. This will allow you to read all Dynamic and JSON data, even the portions that are stored in the SharedVariant and SharedData blobs on the server.

If you are using older versions of ClickHouse, things will continue to work as before (with the previously mentioned limitations).

Feel free to create an issue in the clickhouse-go repository to report any concerns or bugs with this change.

New Contributors

Full Changelog: v2.37.2...v2.38.0