v2.4.0
版本发布时间: 2022-11-21 17:40:48
ClickHouse/clickhouse-go最新发布版本:v2.29.0(2024-09-24 20:36:15)
New Features
- Support for Nullables in Tuples - https://github.com/ClickHouse/clickhouse-go/pull/821 https://github.com/ClickHouse/clickhouse-go/pull/817
- Use headers for auth and not url if SSL https://github.com/ClickHouse/clickhouse-go/pull/811
- Support additional headers - https://github.com/ClickHouse/clickhouse-go/pull/811
- Support int64 for DateTime https://github.com/ClickHouse/clickhouse-go/pull/807
- Support inserting Enums as int8/int16/int https://github.com/ClickHouse/clickhouse-go/pull/802
- Print error if unsupported server https://github.com/ClickHouse/clickhouse-go/pull/792
- Allow block buffer size to tuned for performance - see
BlockBufferSize
- https://github.com/ClickHouse/clickhouse-go/pull/776 - Support custom datetime in Scan - https://github.com/ClickHouse/clickhouse-go/pull/767
- Support insertion of an orderedmap - https://github.com/ClickHouse/clickhouse-go/pull/763
Bug Fixes
- Decompress errors over HTTP - https://github.com/ClickHouse/clickhouse-go/pull/792
- Use
timezone
vstimeZone
so we work on older versions - https://github.com/ClickHouse/clickhouse-go/pull/781 - Ensure only columns specified in INSERT are required in batch - https://github.com/ClickHouse/clickhouse-go/pull/79
- Respect order of columns in insert for batch - https://github.com/ClickHouse/clickhouse-go/pull/790
- Handle double pointers for Nullable columns when batch inserting - https://github.com/ClickHouse/clickhouse-go/pull/77
- Use nil for
LowCardinality(Nullable(X))
- https://github.com/ClickHouse/clickhouse-go/pull/768
Breaking Changes
- Align timezone handling with spec - https://github.com/ClickHouse/clickhouse-go/pull/766, specifically:
- if parsing strings for datetime, datetime64 or dates we assume the locale is Local (i.e. the client) if not specified in the string.
- The server (or column tz) is used for datetime and datetime64 rendering. For date/date32, these have no tz info in the server. For now, they will be rendered as UTC - consistent with the clickhouse-client
- Addresses bind when no location is set