instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ClickHouse__ClickHouse__102261 | ClickHouse/ClickHouse | 102,261 | defect | f878710fc8d21d874d5e2ec250b2af89cc7d3bae | 7a7a0dd9266b647bbafa58c955b26293101c774b | Better parallelization in fs cache metadata load on startup | ### Changelog category (leave one):
- Improvement
### Changelog entry (a [user-readable short description](https://github.com/ClickHouse/ClickHouse/blob/master/docs/changelog_entry_guidelines.md) of the changes that goes into CHANGELOG.md):
Better parallelization in filesystem cache metadata load on startup
#... | diff --git a/src/Interpreters/Cache/FileCache.cpp b/src/Interpreters/Cache/FileCache.cpp
index 54d77dd25741..08fb058bedc3 100644
--- a/src/Interpreters/Cache/FileCache.cpp
+++ b/src/Interpreters/Cache/FileCache.cpp
@@ -19,6 +19,7 @@
#include <Common/ElapsedTimeProfileEventIncrement.h>
#include <Common/FailPoint.h>
#... | 2 | 1 | 0 | [{"id": "G0", "claim": "Changing load_metadata_threads from UInt64 to NonZeroUInt64 makes existing configs with load_metadata_threads = 0 fail validation at startup, a backward-incompatible change that should keep accepting 0 (mapped to a safe behavior) or gate the strict validation behind compatibility controls, with ... | null |
ClickHouse__ClickHouse__102524 | ClickHouse/ClickHouse | 102,524 | defect | 1809f37ff69b96150832a0ac9fb10ea3829f7e96 | 292e58d8b7da8dd5a83d8438fd86d1c975876d33 | Reset buffer cancellation on rewind | While testing a debug build I noticed `chassert` errors:
`<Fatal> : Logical error: 'ReadBuffer is canceled. Can't read from it.'`
<details>
<summary>Stack Trace:</summary>
```c++
2026-04-13 06:14:50.009640000
FATAL
[ 129 ] () <Fatal> BaseDaemon: Stack trace: 0x00007d0c4482e9fd 0x00007d0c447da476 0x00007d0c44... | diff --git a/src/IO/AsynchronousReadBufferFromFileDescriptor.cpp b/src/IO/AsynchronousReadBufferFromFileDescriptor.cpp
index ddd29bdf9df5..9497b943c599 100644
--- a/src/IO/AsynchronousReadBufferFromFileDescriptor.cpp
+++ b/src/IO/AsynchronousReadBufferFromFileDescriptor.cpp
@@ -294,6 +294,10 @@ void AsynchronousReadBuf... | 3 | 3 | 2 | [{"id": "G0", "claim": "Add a regression test for the rewind fix that resets the canceled flag (none exists yet).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new regression test only exercises the sync ReadBufferFromFile path; add a test that hit... | null |
ClickHouse__ClickHouse__102701 | ClickHouse/ClickHouse | 102,701 | defect | bfa2f9ed7175597ec1f7bcdc052fe71bfc5d6011 | e05314ca39850df4844f42b0a3f8efcfdbc2f79b | Add 'Functions properties fuzzer' job | ### Changelog category (leave one):
- CI Fix or Improvement (changelog entry is not required)
### Changelog entry (a [user-readable short description](https://github.com/ClickHouse/ClickHouse/blob/master/docs/changelog_entry_guidelines.md) of the changes that goes into CHANGELOG.md):
...
### Documentation ent... | diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index e68b1a35e247..99a923784f0f 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -1307,6 +1307,120 @@ jobs:
prefix=lambda: datetime.datetime.now().strftime("[%Y-%m-%d %H:%M:%S]")
for line in sy... | 4 | 3 | 0 | [{"id": "G0", "claim": "For config simplicity the three func_props_fuzzer ParamSets could instead be ParamSets of the existing unittest_jobs (e.g. parameter 'asan_ubsan, function_prop_fuzzer') with the job branching on the job name.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"... | null |
ClickHouse__ClickHouse__102759 | ClickHouse/ClickHouse | 102,759 | defect | d82e501b0e4d09ccb237827f8ef494f509bcae12 | 6fa7b955d5d9ddc82ddd6834aafa2a88fb79a84d | Apply Poisson sampling correction to collapsed jemalloc heap profiles | Collapsed jemalloc heap profiles generated by `system.jemalloc_profile_text` and `SYSTEM JEMALLOC FLUSH PROFILE` reported raw sampled bytes without the Poisson sampling correction that jeprof applies. This caused the reported totals to underestimate actual allocation sizes — for example, ~5.9 GB raw vs ~11.2 GB correct... | diff --git a/src/Processors/Sources/JemallocProfileSource.cpp b/src/Processors/Sources/JemallocProfileSource.cpp
index f14c1a4f27c5..71aedce15939 100644
--- a/src/Processors/Sources/JemallocProfileSource.cpp
+++ b/src/Processors/Sources/JemallocProfileSource.cpp
@@ -2,6 +2,8 @@
#if USE_JEMALLOC
+# include <cmat... | 3 | 1 | 1 | [{"id": "G0", "claim": "parseSamplingInterval throws on malformed heap_v2 values (e.g. heap_v2/abc) despite being documented to return 0, so make it non-throwing and add a test that malformed headers fall back to raw metrics.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
ClickHouse__ClickHouse__102894 | ClickHouse/ClickHouse | 102,894 | defect | 718458f6fa44cc9e25d4764e365486a727523b1b | deda6636c7f82fa2c19b303bd6399aeee1151fb7 | Fix short writes in Poco BufferedStreamBuf::flushBuffer | `BufferedStreamBuf::flushBuffer` expected `writeToDevice` to write all bytes in a single call. `SocketImpl::sendBytes` wraps a single `::send` syscall which can legitimately return a short write count. This mismatch caused `flushBuffer` to return -1 on a partial send, which the iostream layer converted into a generic `... | diff --git a/base/poco/Foundation/include/Poco/BufferedStreamBuf.h b/base/poco/Foundation/include/Poco/BufferedStreamBuf.h
index d97e37eedf36..3e8e54e5e594 100644
--- a/base/poco/Foundation/include/Poco/BufferedStreamBuf.h
+++ b/base/poco/Foundation/include/Poco/BufferedStreamBuf.h
@@ -134,12 +134,16 @@ class BasicBuff... | 3 | 3 | 3 | [{"id": "G0", "claim": "HTTPFixedLengthStreamBuf::writeToDevice throws before writing the remaining allowed bytes when a write crosses Content-Length, leaving the peer waiting for bytes promised by the header; preserve the partial-write step (min(length, _length - _count)) before signaling failure.", "category": "corre... | null |
ClickHouse__ClickHouse__103188 | ClickHouse/ClickHouse | 103,188 | defect | ce878628f8bb897f0ad4697478c01c4d31e0d9cd | 08144a2cb7e3aa0e0e23428ef0ffa8e1957d2e07 | Make Query Execution Graph Index Independent | ### Changelog category (leave one):
- Not for changelog (changelog entry is not required)
### Changelog entry (a [user-readable short description](https://github.com/ClickHouse/ClickHouse/blob/master/docs/changelog_entry_guidelines.md) of the changes that goes into CHANGELOG.md):
This patch changes how processor... | diff --git a/src/Processors/DelayedPortsProcessor.cpp b/src/Processors/DelayedPortsProcessor.cpp
index 66cacc0736b1..b6ce02efadc1 100644
--- a/src/Processors/DelayedPortsProcessor.cpp
+++ b/src/Processors/DelayedPortsProcessor.cpp
@@ -15,7 +15,7 @@ namespace ErrorCodes
InputPorts createInputPorts(
SharedHeader he... | 2 | 1 | 1 | [{"id": "G0", "claim": "addNode no longer throws LOGICAL_ERROR when a processor that is already in the graph is added; the emplace-style insert should restore that duplicate check so mis-wired edge lookups and stale nodes cannot happen.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
ClickHouse__ClickHouse__103537 | ClickHouse/ClickHouse | 103,537 | defect | 7fc29dcb1a1ba3a789dfeab9255f597040c682ea | f77364759c8effc06385e5ff0ab2c575f8eb5362 | Fix `LOGICAL_ERROR` "Part X intersects previous part Y" during ReplicatedMergeTree startup | Fix a rare `LOGICAL_ERROR` "Part X intersects previous part Y" that aborts
`ReplicatedMergeTree` startup when two empty unexpected parts on disk have
intersecting block ranges without one fully containing the other.
## Failure
```
Logical error: 'Part all_2_11_3 intersects previous part all_0_5_2.
It is a bug or a re... | diff --git a/src/Storages/MergeTree/tests/gtest_active_data_part_set.cpp b/src/Storages/MergeTree/tests/gtest_active_data_part_set.cpp
new file mode 100644
index 000000000000..c28806b6260c
--- /dev/null
+++ b/src/Storages/MergeTree/tests/gtest_active_data_part_set.cpp
@@ -0,0 +1,69 @@
+#include <gtest/gtest.h>
+
+#incl... | 1 | 1 | 1 | [{"id": "G0", "claim": "Switching to tryAdd and skipping one of two intersecting empty markers can still change startup behavior harmfully, because getContainingPart may no longer find an empty covering marker for an unexpected part covered only by the skipped marker, reclassifying it as uncovered and potentially tripp... | null |
ClickHouse__ClickHouse__59138 | ClickHouse/ClickHouse | 59,138 | defect | 697e72c13da58ef61993d8be9d04f2fe83ecceaa | 615b8265dc38c50c3772e8bc12150f2ad356997d | Fix REPLACE PARTITION waiting for mutations/merges on unrelated partitions | ### Changelog category (leave one):
- Improvement
### Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
`ALTER TABLE .. REPLACE PARTITION` doesn't wait anymore for mutations/merges that happen in other partitions
Add a user-readable short description of the changes ... | diff --git a/src/Common/tests/gtest_action_blocker.cpp b/src/Common/tests/gtest_action_blocker.cpp
new file mode 100644
index 000000000000..687f77da679e
--- /dev/null
+++ b/src/Common/tests/gtest_action_blocker.cpp
@@ -0,0 +1,129 @@
+#include <gtest/gtest.h>
+
+#include <chrono>
+#include <mutex>
+#include <stdexcept>
... | 12 | 11 | 2 | [{"id": "G0", "claim": "The .sh test should replace the fixed 0.1s sleep with a poll loop that waits until the merge on partition '1' actually appears in system.merges, otherwise the test is flaky.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The temp... | null |
ClickHouse__ClickHouse__73659 | ClickHouse/ClickHouse | 73,659 | defect | 1cd931b19f5aa8e01914edbdcce200e19dfe629f | c5919a0a488d0cae0e36b0803a04112bd5ac199a | Add `READ/WRITE` permissions for sources | <!---
A technical comment, you are free to remove or leave it as it is when PR is created
The following categories are used in the next scripts, update them accordingly
utils/changelog/changelog.py
tests/ci/cancel_and_rerun_workflow_lambda/app.py
-->
### Changelog category (leave one):
- Improvement
### Chang... | diff --git a/src/Access/Common/AccessFlags.cpp b/src/Access/Common/AccessFlags.cpp
index 8d1d5bf10f06..6489fdce4bb5 100644
--- a/src/Access/Common/AccessFlags.cpp
+++ b/src/Access/Common/AccessFlags.cpp
@@ -102,6 +102,7 @@ namespace
const Flags & getColumnFlags() const { return all_flags_for_target[COLUMN]; }
... | 5 | 3 | 1 | [{"id": "G0", "claim": "It might be useful to add parameters to the source types in a different manner, for example allowing reading/writing to a specific host via `GRANT URL ON \"http://specific_host/*\"` instead of the parameterized SOURCE READ/WRITE grants.", "category": "design", "verdict": "opposed", "priority": "... | null |
ClickHouse__ClickHouse__89432 | ClickHouse/ClickHouse | 89,432 | defect | ee79891c95eb52b819e52ae85838a050ab1686c2 | 5ebbe964d9e1b3ce6db54a131643bf5965b25e71 | Fix T64 codec crash when input size is not aligned to element size | <!--- Disable AI PR formatting assistant: true -->
### Changelog category (leave one):
- Backward Incompatible Change
### Changelog entry (a [user-readable short description](https://github.com/ClickHouse/ClickHouse/blob/master/docs/changelog_entry_guidelines.md) of the changes that goes into CHANGELOG.md):
Fix `... | diff --git a/src/Compression/CompressionCodecT64.cpp b/src/Compression/CompressionCodecT64.cpp
index b724e8510b7d..90f49263fb07 100644
--- a/src/Compression/CompressionCodecT64.cpp
+++ b/src/Compression/CompressionCodecT64.cpp
@@ -10,8 +10,6 @@
#include <IO/WriteHelpers.h>
#include <Core/Types.h>
#include <bit>
-
-
... | 4 | 3 | 2 | [{"id": "G0", "claim": "The pull request should add a unit test for the T64 codec change, following the pattern in src/Compression/tests/gtest_compressionCodec.cpp.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "compressData reads uninitialized memory w... | null |
ClickHouse__ClickHouse__92644 | ClickHouse/ClickHouse | 92,644 | defect | 3b4908fb60172ece51a73e0c4bb1f83378590fdd | 815041650a6e51d1c2c297d5a57f879941f33166 | Add guardrails for text index with large parts | ### Changelog category (leave one):
- Bug Fix (user-visible misbehavior in an official stable release)
### Changelog entry (a [user-readable short description](https://github.com/ClickHouse/ClickHouse/blob/master/docs/changelog_entry_guidelines.md) of the changes that goes into CHANGELOG.md):
Creating and material... | diff --git a/src/Storages/MergeTree/Compaction/MergeSelectorApplier.cpp b/src/Storages/MergeTree/Compaction/MergeSelectorApplier.cpp
index ad10035388de..732e631afd3d 100644
--- a/src/Storages/MergeTree/Compaction/MergeSelectorApplier.cpp
+++ b/src/Storages/MergeTree/Compaction/MergeSelectorApplier.cpp
@@ -47,6 +47,7 @@... | 4 | 4 | 2 | [{"id": "G0", "claim": "Extend max_merge_sizes into a merge_constraints type that carries a row limit for each merge request alongside the bytes size, keeping merge-selection tweaking in MergeSelectorApplier.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
ClickHouse__ClickHouse__93106 | ClickHouse/ClickHouse | 93,106 | defect | 6b6a299a85ac767d19cc482f6a45150d7499b22a | c002c61c57a2b7322d48c35b9887adbdd27299ed | Implement `blob_storage_log` for Local and HDFS | ### Changelog category (leave one):
- Improvement
### Changelog entry (a [user-readable short description](https://github.com/ClickHouse/ClickHouse/blob/master/docs/changelog_entry_guidelines.md) of the changes that goes into CHANGELOG.md):
Implement `blob_storage_log` for Local and HDFS. Fix an error when `S3Qu... | diff --git a/programs/server/config.d/storage_conf_local.xml b/programs/server/config.d/storage_conf_local.xml
new file mode 120000
index 000000000000..b10ee60c43e5
--- /dev/null
+++ b/programs/server/config.d/storage_conf_local.xml
@@ -0,0 +1 @@
+../../../tests/config/config.d/storage_conf_local.xml
\ No newline at en... | 4 | 1 | 1 | [{"id": "G0", "claim": "LocalObjectStorage::removeObject logs the delete event twice — once on the unlink-error path before throwing and once after a successful unlink — so the error-path logging is redundant and should be removed, keeping only the success-path logging.", "category": "correctness", "verdict": "uncertai... | null |
ClickHouse__ClickHouse__99131 | ClickHouse/ClickHouse | 99,131 | defect | 4611f25153466d2a5edb8ae9ccf4c11d307407e5 | 854e0c0c36d46a55505273203ba0746e387447d0 | Add highlight() function for search term highlighting with tag wrapping | ### Changelog category (leave one):
- New Feature
### Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add `highlight()` function that wraps occurrences of search terms in a text string with HTML tags (default `<em>`/`</em>`). Supports ASCII case-insensitive m... | diff --git a/src/Functions/HighlightImpl.h b/src/Functions/HighlightImpl.h
new file mode 100644
index 000000000000..354dbc961deb
--- /dev/null
+++ b/src/Functions/HighlightImpl.h
@@ -0,0 +1,198 @@
+#pragma once
+
+#include <algorithm>
+#include <vector>
+
+#include <base/types.h>
+#include <Common/Volnitsky.h>
+#includ... | 18 | 11 | 4 | [{"id": "G0", "claim": "The FixedString-to-ColumnString conversion writes row bytes without the required trailing \\0 terminator and stores offsets before it, which violates ColumnString invariants and can cause incorrect reads; append one zero byte per row and set the offset after it.", "category": "correctness", "ver... | null |
ClickHouse__ClickHouse__99491 | ClickHouse/ClickHouse | 99,491 | defect | 72360b4b81c935102c295264c815c8eb67ecd358 | 4ad949311222198f7539dc84160b567ed10a587d | Keeper: some cleanup in snapshot code | ### Changelog category (leave one):
- Not for changelog (changelog entry is not required)
---
* There was a weird line of code that silently skips znodes with a comment saying it's a `Benign race condition`. But it wouldn't be benign, it would produce incorrect snapshots and break consistency. But AFAICT it's no... | diff --git a/CMakeLists.txt b/CMakeLists.txt
index c5f6df06c3f3..f5726899748d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -138,7 +138,7 @@ endif ()
include (cmake/check_flags.cmake)
include (cmake/add_warning.cmake)
-option(ENABLE_TESTS "Provide unit_test_dbms target with Google.Test unit tests" ON)
+option... | 5 | 3 | 2 | [{"id": "G0", "claim": "Both places that create a snapshot on shutdown/exit should use nuraft's create_snapshot_options API with serialize_commit_ = true instead of taking NuRaft's internal commit lock via lockCommit().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
ClickHouse__ch-go__1039 | ClickHouse/ch-go | 1,039 | defect | f99ba048f6bf40cc2151576ca7a3ae3686303a2d | 86898750318cdf2ca5872c205fdca2d66ef15e7c | perf(compress.writer): allow creating a compress.writer with custom supported methods | ## Summary
Currently, the compress.Writer by default allocates 3 writers: zstd, lz4, and lz4hc. All of these allocate memory by default, and many times compressors are only created to be used for just one method, like in clickhouse-go driver https://github.com/ClickHouse/clickhouse-go/blob/main/conn.go#L76-L84
In... | diff --git a/compress/compress_test.go b/compress/compress_test.go
index c3a7dfec..b55eaa14 100644
--- a/compress/compress_test.go
+++ b/compress/compress_test.go
@@ -77,6 +77,32 @@ func TestCompress(t *testing.T) {
}
}
+func TestCompressWithMethod(t *testing.T) {
+ data := []byte(strings.Repeat("Hello!\n", 25))
+... | 3 | 3 | 1 | [{"id": "G0", "claim": "The methods lookup should use a fixed-size [NumMethods]bool array (with a NumMethods constant in compress.go and None pre-seeded) instead of a map, to avoid the map's allocation and lookup overhead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
ClickHouse__ch-go__1075 | ClickHouse/ch-go | 1,075 | defect | 656bc5d482c7c200b26544301e3060dd419f84e9 | 68137dded4716b1a3e854fad443e00ab5ee5e108 | feat: add ssh key authentication support | fixes: https://github.com/ClickHouse/ch-go/issues/350
## Summary
adds ssh support for auth
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] ... | diff --git a/client.go b/client.go
index 6a377590..0f876206 100644
--- a/client.go
+++ b/client.go
@@ -22,6 +22,7 @@ import (
pkgVersion "github.com/ClickHouse/ch-go/internal/version"
"github.com/ClickHouse/ch-go/otelch"
"github.com/ClickHouse/ch-go/proto"
+ "github.com/ClickHouse/ch-go/ssh"
)
// Client imple... | 4 | 4 | 2 | [{"id": "G0", "claim": "The config should expose a `cryptossh.Signer` field instead of (rather than in addition to) a key file path, so users can load SSH keys from vaults or memory.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `useSSH` boolean is ... | null |
ClickHouse__clickhouse-connect__33 | ClickHouse/clickhouse-connect | 33 | defect | 8f4e8d82c797b8cc5ed6ab71cbfe57c837fc4440 | 575c56a6aead18b2b8eaef1f8ec8591e8fecc074 | Arrow inserts | -- Always backtick quote identifiers in SQLAlchemy and client insert statements
-- Clean up push workflow to not require pip install -e (this makes tests and lint checking possible without setting an explicit version in setup.py, which we only do on release
-- Minor refactoring for inserts to cleanly support direct i... | diff --git a/.github/workflows/on_push.yml b/.github/workflows/on_push.yml
index 5c2a52d8..18a6713a 100644
--- a/.github/workflows/on_push.yml
+++ b/.github/workflows/on_push.yml
@@ -20,9 +20,9 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- pip... | 2 | 1 | 1 | [{"id": "G0", "claim": "quote_identifier should also treat an identifier already quoted with double quotes as quoted, not only backtick-quoted ones.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The newly added requests and pytz entries in tests/te... | null |
ClickHouse__clickhouse-connect__525 | ClickHouse/clickhouse-connect | 525 | defect | 2be2cd3aa25eda04c3ab4bf5df4f0c919068d3f4 | cbd73ae41151110f28cb97b622ef39ce29459934 | Effort toward pandas 2.x support | ## Summary
This PR:
- Fixes some errors when inserting dataframes of `Time` and `Time64` types.
- Enforce consistent resolution of `datetime64` and `timedelta64` dtypes when using `query_df` regardless of Pandas version
- Wires up a way to leverage additional Pandas 2.x resolutions of "s", "ms", "us" for `datetim... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f6ed8dab..9f70108d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,12 @@ instead of being passed as ClickHouse server settings. This is in conjunction wi
The supported method of passing ClickHouse server settings is to prefix such arguments/query parameters with... | 1 | 1 | 0 | [{"id": "G0", "claim": "nit: the return statement in _finalize_column is wrapped in unnecessary parentheses.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
ClickHouse__clickhouse-connect__536 | ClickHouse/clickhouse-connect | 536 | defect | 72f7cc0ce82b2b79e6b4dd9f4a64d2fcfa1cbb9b | 6222a92b9eb812f29ee133ff463f0a0506984d86 | support pyarrow backed pandas dataframes | ## Summary
This PR introduces 3 new API methods that provide support for inserts and queries with pyarrow-backed DataFrames:
- `query_df_arrow()`: Returns a pandas DataFrame with PyArrow dtype backend for improved performance and memory efficiency. Arrow data types are preserved without additional conversions.
- `qu... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16529e49..0164c838 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,10 @@ instead of being passed as ClickHouse server settings. This is in conjunction wi
The supported method of passing ClickHouse server settings is to prefix such arguments/query parameters with... | 6 | 5 | 0 | [{"id": "G0", "claim": "For the pyarrow-backed DataFrame support, the PR could either deliver the straight server conversion (e.g. uint16 for dates) and let end users convert, or use pyarrow.compute to cast such types client-side (e.g. date uint16 to date32).", "category": "design", "verdict": "opposed", "priority": "P... | null |
ClickHouse__clickhouse-connect__541 | ClickHouse/clickhouse-connect | 541 | defect | dd98b2bd3acaa7bd59a27cca54b28bc1ff4f3618 | f1803ac0f8b588ac5038a688221e4614eb62cd09 | support for sqalchemy 2.x | ## Summary
- Provides support for sqlalchemy 2. Supported version range is now sqlalchemy>=1.4.40,<3.0.
- Removes support for sqlalchemy 1.3 as it [has reached](https://www.sqlalchemy.org/download.html#status-desc-eol) EOL in 2021.
- !! NOTE !! This is a breaking change if using sqlalchemy 1.3.
- Updates test req... | diff --git a/.github/workflows/on_push.yml b/.github/workflows/on_push.yml
index 75499ce4..e2044484 100644
--- a/.github/workflows/on_push.yml
+++ b/.github/workflows/on_push.yml
@@ -144,9 +144,47 @@ jobs:
SQLALCHEMY_SILENCE_UBER_WARNING: 1
run: pytest tests/integration_tests/test_pandas_compat.py t... | 2 | 2 | 1 | [{"id": "G0", "claim": "The sqlalchemy extra pin in setup.py (`sqlalchemy>=1.4.40,<2.0`) does not include SQLAlchemy 2.0, which the PR set out to support.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Testing should cover both SQLAlchemy 1.4.x and ... | null |
ClickHouse__clickhouse-connect__543 | ClickHouse/clickhouse-connect | 543 | defect | ca001fc2dc5068e38018440334d6b8c910d2ea2f | 0297d82b53cac23704903044ddd8bbe87aa1fe7e | feat(httpclient): add ability to form encode parameters | == Motivation ==
Support form encoding of query params
== Details ==
This addresses https://github.com/ClickHouse/clickhouse-connect/issues/342
Since https://github.com/ClickHouse/ClickHouse/issues/8842, query parameters can now be sent to ClickHouse when using HTTP via the body as form encoded paramters. T... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7721e50e..9e1f7130 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ instead of being passed as ClickHouse server settings. This is in conjunction wi
The supported method of passing ClickHouse server settings is to prefix such arguments/query parameters with`... | 3 | 3 | 3 | [{"id": "G0", "claim": "The bytes guard in _prep_raw_query is wrong: it raises 'Cannot combine binary query data with `External Data`' even when external_data is absent, and bytes should only be disallowed when the query is forced into the URL (external_data present and not form-encoding), e.g. `if external_data and no... | null |
ClickHouse__clickhouse-connect__547 | ClickHouse/clickhouse-connect | 547 | defect | aa48de45768637b667ed5c58fe59d404c780834a | d0502231b0f4b4c33b424f8c6911b43d0f82ae92 | Joe/546 add library to user agent | ## Summary
Adds 3rd party integration tags to the user agent. Prior to this the User-Agent would look like:
```clickhouse-connect/0.8.18 (lv:py/3.12.11; mode:sync; os:darwin)```
If the common setting `send_integration_tags` is set to `True` and the user uses the sqlalchemy integration capabilities, for example, ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f5403f02..4d97bca6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ instead of being passed as ClickHouse server settings. This is in conjunction wi
The supported method of passing ClickHouse server settings is to prefix such arguments/query parameters with`... | 2 | 1 | 0 | [{"id": "G0", "claim": "The try/except around the _add_integration_tag call in the dbapi connection is unnecessary and should be removed, since the method is fully under the project's control and should not throw.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
ClickHouse__clickhouse-connect__548 | ClickHouse/clickhouse-connect | 548 | defect | 8095608a7c2a11ce1174b37c0a57ad8823a70a27 | 2bf7f8d0e7258c7c89021d7ef000235eb0a354e3 | add rename_response_column option | ## Summary
Adds a client option called `rename_response_column` that will automatically rename columns according to one of the chosen renaming schemes. Options are:
Option | Original Column Name | New Column Name |
------- | ---------------------- | ------------------- |
None | `a.b.c d_e` | `... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4d97bca6..042867ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ instead of being passed as ClickHouse server settings. This is in conjunction wi
The supported method of passing ClickHouse server settings is to prefix such arguments/query parameters with`... | 2 | 1 | 0 | [{"id": "G0", "claim": "The response-column renaming functionality should be moved out of the HTTP client into _transform.parse_response or the query_result object, with the renamer belonging to the query context rather than the client.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introdu... | null |
ClickHouse__clickhouse-connect__550 | ClickHouse/clickhouse-connect | 550 | defect | 1dcd0ebc4e93b17e3375632b585ff0726d99d122 | 8d437c6b3f93d7451c607c8e28cbb3cbfe30018e | "role" is a valid transport setting | ## Summary
This makes it possible to set a role for a given query. It's still not possible to set *multiple* roles because the way this is expressed in the protocol is by *repeating* the `role=` query parameter, which this application doesn't know how to do.
A better full-featured solution would be to add a `role=... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5c14ec59..b6c0c492 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -61,6 +61,7 @@ The supported method of passing ClickHouse server settings is to prefix such arg
- Changed `AsyncClient.settings` typing to `Optional[Dict[str, Any]]` to accept None inputs.
- Added more ro... | 2 | 2 | 1 | [{"id": "G0", "claim": "The reviewer suggests adding a test to verify that passing \"role\" via settings works as expected (e.g. a role-limited user hitting max_rows_to_read).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer requests moving t... | null |
ClickHouse__clickhouse-connect__584 | ClickHouse/clickhouse-connect | 584 | defect | def9a93ae840f9085b2da7bdb3cc1dfbfd0087b9 | cfd21b20e193066fc6db60b57d091535f9d157ea | Support for array join and final modifier in sqlalchemy | ## Summary
1. Fixes what appears to be a bug in `create_insert_context` function that missed passing `settings` causing queries that rely on consistent settings across an operation to potentially fail.
2. Adds support to the SQLAlchemy core API for:
- `[LEFT] ARRAY JOIN`s e.g.
- `FINAL` modifier for use with `Rep... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1f474c32..9e7feee8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -27,6 +27,7 @@ The supported method of passing ClickHouse server settings is to prefix such arg
- Fixed issue with JSON key dot escaping. Closes [#571](https://github.com/ClickHouse/clickhouse-connect/issu... | 2 | 1 | 0 | [{"id": "G0", "claim": "The explicit `test_table.drop(conn)` call at the end of the test is redundant because `table_context` already handles cleanup and should be removed to avoid duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Omit... | null |
ClickHouse__clickhouse-connect__597 | ClickHouse/clickhouse-connect | 597 | defect | f40cd285194b0f172056a85f83e057a3f6b52be5 | 77bcd68b6b1e627fb0743bad98627c79bc794a89 | add feature to create tables from pyarrow objects | ## Summary
This PR implements the helper requested in [#588](https://github.com/ClickHouse/clickhouse-connect/issues/588) for creating ClickHouse tables from PyArrow schemas.
- Adds a new utility `arrow_schema_to_column_defs(schema: pa.Schema) -> list[TableColumnDef]` that converts a `pyarrow.Schema` into `TableCol... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index eb4bbdf4..cc8cb15d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,7 @@ The supported method of passing ClickHouse server settings is to prefix such arg
## UNRELEASED
### Bug Fixes
### Improvements
+- Add the ability to create table from PyArrow objects. Addre... | 7 | 7 | 3 | [{"id": "G0", "claim": "The `pat.is_floating()` check is broader than intended for the Float64 fallback, so it should be moved up as the general float handler or replaced with a precise `pat.is_float64()` check.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
ClickHouse__clickhouse-connect__603 | ClickHouse/clickhouse-connect | 603 | defect | 70bd2d2c64a277c62fa38c1e7572f5f31fd326fc | cb157ed56a6bee924d242dee59aabcab47bd12e4 | Joe/596 always generate query id if not set | ## Summary
This PR introduces a backwards-compatible enhancement to automatically generate a UUID4 `query_id` client-side by default when not explicitly provided. This will greatly aid in correlating application logs with ClickHouse query logs during debugging, performance investigations, incident response, etc.
- ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c93647b..a15e5053 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,7 @@ The supported method of passing ClickHouse server settings is to prefix such arg
### Improvements
- Add support for QBit data type. Closes [#570](https://github.com/ClickHouse/clickhouse-co... | 2 | 2 | 0 | [{"id": "G0", "claim": "The CHANGELOG entry should read 'if it is not explicitly set' instead of 'if it not explicitly set'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The query_log test interpolates test_query_id directly into the SQL string;... | null |
ClickHouse__clickhouse-connect__621 | ClickHouse/clickhouse-connect | 621 | defect | ff094f788c82520d14e0ce124d1ca8421e8385d4 | feb07fc3525bc5aa41f4ed249508646baa787681 | fix: handle Etc/UTC timezone equivalence for naive datetime conversion | # Description
Hello everyone,
I noticed that when querying timestamp columns **without** timezone I would always get back timestamps **with** timezones, which breaks joins and other operations in polars when other columns do not have timezones. This should fix this problem. Below I link to several previous issues... | diff --git a/clickhouse_connect/driver/binding.py b/clickhouse_connect/driver/binding.py
index 1fa2dd09..244eccd0 100644
--- a/clickhouse_connect/driver/binding.py
+++ b/clickhouse_connect/driver/binding.py
@@ -8,6 +8,7 @@
import pytz
from clickhouse_connect import common
+from clickhouse_connect.driver import tzut... | 6 | 6 | 3 | [{"id": "G0", "claim": "Etc/UCT is missing from the PR's list of UTC-equivalent timezones, so Etc/UCT would not be recognized as UTC; the maintainer says he is fixing that recognition bug in #629 and asks for this PR to be rebased on top of it.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco... | null |
ClickHouse__clickhouse-connect__651 | ClickHouse/clickhouse-connect | 651 | defect | 68a7fa29f7eda008f246d84ff3ac81bbbb72d124 | 62de739766ca79f50595126cad2cb625c24e58d9 | Add native write path for Variant data type | ## Summary
Taking a stab at implementing this enhancement https://github.com/ClickHouse/clickhouse-connect/issues/534.
Implement native write path for Variant data type, replacing the previous approach that serialized all values as strings.
Values are now written in native binary format with automatic type disp... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 094b1c8c..01d92340 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,8 @@ instead of being passed as ClickHouse server settings. This is in conjunction wi
The supported method of passing ClickHouse server settings is to prefix such arguments/query parameters with`... | 3 | 3 | 1 | [{"id": "G0", "claim": "The CHANGELOG entry should be a more significant note marking this as a breaking change, starting with **BREAKING CHANGE:** and explaining what changed (DataError instead of silent stringification, native types now stored, typed_variant required for ambiguous members).", "category": "documentati... | null |
ClickHouse__clickhouse-connect__653 | ClickHouse/clickhouse-connect | 653 | defect | 68a7fa29f7eda008f246d84ff3ac81bbbb72d124 | f8ac9ebdc02097988f4f8706dd3404c292dc6a61 | Add utc_tz_aware="schema" mode for schema-matching datetime output | ## Summary
- Adds `utc_tz_aware="schema"` mode which returns datetimes that match the server's explicit column definition. That means it'll be timezone-aware when the column schema defines a timezone e.g. `DateTime('UTC')` and naive for bare `DateTime` columns
- Validates the `utc_tz_aware` parameter and raises `Pr... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 094b1c8c..5065e3ac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,9 @@ The supported method of passing ClickHouse server settings is to prefix such arg
## UNRELEASED
+### Improvements
+- Added `utc_tz_aware="schema"` mode which returns timezone-aware dateti... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added utc_tz_aware type hints should be tightened from Union[bool, str] to Union[bool, Literal[\"schema\"]] (extendable to further values or a StrEnum) across all of the pull request's type hints, which is safe since the project requires Python 3.9.", "category": "design", "verdict": "suppor... | null |
ClickHouse__clickhouse-connect__656 | ClickHouse/clickhouse-connect | 656 | defect | 2fc3b5f5aa15934a706423e79053edac68af8670 | f63de303dd930017f79d68f1cc0f1958611918db | feat: add support for SAMPLE clause in SQLAlchemy queries | ## Summary
Add support for the ClickHouse SAMPLE clause in SQLAlchemy queries by monkey patching the Select class with a new .sample() method.
Closes #634
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable des... | diff --git a/clickhouse_connect/cc_sqlalchemy/sql/__init__.py b/clickhouse_connect/cc_sqlalchemy/sql/__init__.py
index e7051839..6ecc608a 100644
--- a/clickhouse_connect/cc_sqlalchemy/sql/__init__.py
+++ b/clickhouse_connect/cc_sqlalchemy/sql/__init__.py
@@ -39,7 +39,9 @@ def final(select_stmt: Select, table: Optional[... | 4 | 3 | 0 | [{"id": "G0", "claim": "Rename the `self` parameter of the standalone sample() helper to `select_stmt` and update the docstring accordingly, for consistency with final().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Update the type hint of `sa... | null |
ClickHouse__clickhouse-connect__669 | ClickHouse/clickhouse-connect | 669 | defect | c65f54a079c790673d7f87bb2a303784d9081b8d | 50979e34ad743fdf1ec3e4cabf3e6e879e2697e7 | Remove deprecated `utc_tz_aware` parameter | ## Summary
Remove all `utc_tz_aware` deprecation scaffolding introduced in #664. The `tz_mode` parameter is now the only way to control timezone behavior. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index c7d08e57..2a7239e2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,11 @@ release (0.9.0), unrecognized arguments/keywords for these methods of creating a
instead of being passed as ClickHouse server settings. This is in conjunction with some refactoring in Clien... | 5 | 2 | 1 | [{"id": "G0", "claim": "The new \"1.0.0\" CHANGELOG section sits above \"UNRELEASED\" while later entries still land under UNRELEASED, so the breaking-change entry should be moved under UNRELEASED (or the 1.0.0 header below it) until 1.0.0 is actually released and dated.", "category": "documentation", "verdict": "suppo... | null |
ClickHouse__clickhouse-connect__708 | ClickHouse/clickhouse-connect | 708 | defect | 00cdf55b42513706a5558996a28b834b2e026ce8 | 260434017e70238b9f0149912b94c42f3744de80 | fix async streaming race | ## Summary
Fix async queue race condition on early stream termination. `shutdown()` and `_wakeup_async_waiter()` checked `fut.done()` before scheduling `fut.set_result(None)` via `call_soon_threadsafe`. Between scheduling and callback execution, `Task.cancel()` could cancel the future, so the callback would call `set_... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f3e48b92..c612307c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,9 @@ The supported method of passing ClickHouse server settings is to prefix such arg
- Removed the `preserve_pandas_datetime_resolution` common setting. Datetime columns now always return their ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The putter test's fixed 200x1ms polling loop waiting for len(q._async_putters) == 1 can be flaky under parallel runs or slower CI; use a timeout-driven deterministic wait instead.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
ClickHouse__clickhouse-go__1062 | ClickHouse/clickhouse-go | 1,062 | defect | 0a19cff86a6aabbc6b7b368ff7ea1b29d4e425df | 2ab0f52d21a55c85774e815698d80c62dd045347 | Implement release connection in batch | With this change, you can append to the batch directly without using helper structures (slice). Earlier this led to an empty pool, although it is not necessary to keep the connection in the batcher for the append operation.
In our implementation we saved about 2GB of memory per pod.
<img width="1361" alt="screen"... | diff --git a/clickhouse.go b/clickhouse.go
index 8b18d2ddad..679e959b77 100644
--- a/clickhouse.go
+++ b/clickhouse.go
@@ -44,12 +44,11 @@ type (
var (
ErrBatchInvalid = errors.New("clickhouse: batch is invalid. check appended data is correct")
ErrBatchAlreadySent = errors.New("clickhouse: ba... | 3 | 2 | 2 | [{"id": "G0", "claim": "Keep the removed ErrBatchNotSent error (and these error types) exported for backward compatibility, since removing them is a breaking change.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In the release-connection tests, the requ... | null |
ClickHouse__clickhouse-go__1166 | ClickHouse/clickhouse-go | 1,166 | defect | 4c4b0cbc4e89d2e62db40fe99b3dde1e58e2b6e7 | 17041ba8fce4057695f1a674e829be2d0189254f | resolves #1163 debugF function is not respected | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
Options.DebugF is not used properly.
Resolves #1163
## Checklist
Delete items not relevant to your PR:
- [X] Unit and integration tests covering the common scenarios were added
- [X] A human-readable description of the change... | diff --git a/clickhouse_std.go b/clickhouse_std.go
index 7ab670667f..779856c35d 100644
--- a/clickhouse_std.go
+++ b/clickhouse_std.go
@@ -46,7 +46,11 @@ type stdConnOpener struct {
func (o *stdConnOpener) Driver() driver.Driver {
var debugf = func(format string, v ...any) {}
if o.opt.Debug {
- debugf = log.New(o... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test's Debugf callback should set a debugfCalled flag so the invocation can be asserted later.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should end with an assertion that debugfCalled is true, verifying that Deb... | null |
ClickHouse__clickhouse-go__1205 | ClickHouse/clickhouse-go | 1,205 | defect | fe7821d9d7343bd133ff1a5d17019d0b6113da4e | 4a6ff23a4fdccee1aa4910b539fe5da8691b7e80 | Support [n]byte/[]byte type Scan/Append to FixedString column | ## Summary
Support \[n]byte/[]byte type Scan/Append to FixedString column
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
closes #1155
| diff --git a/lib/column/fixed_string.go b/lib/column/fixed_string.go
index 8ddb0d1ce6..7b8146754b 100644
--- a/lib/column/fixed_string.go
+++ b/lib/column/fixed_string.go
@@ -22,9 +22,10 @@ import (
"database/sql/driver"
"encoding"
"fmt"
- "github.com/ClickHouse/ch-go/proto"
"reflect"
+ "github.com/ClickHouse... | 2 | 1 | 1 | [{"id": "G0", "claim": "Reviewer questions why the new []byte case in AppendRow copies the input into the fixed-size buffer instead of assigning the slice directly.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new byte-array handling in FixedStr... | null |
ClickHouse__clickhouse-go__1276 | ClickHouse/clickhouse-go | 1,276 | defect | 06a4c4318eb432c20fc904fad0f742f9e8139f07 | d68bc08b76c8c24631b31c39b2bd64979226916b | Optional flag to close query with flush | #1271
## Summary
- feature: close query and release connection when use batch.Flush()
- usage:
```
batch, err := conn.PrepareBatch(ctx, "INSERT INTO some_table", driver.WithCloseQuery())
for {
// other append code
if err = batch.Flush(); err != nil {
break
}
}
```
## Checklist
Del... | diff --git a/conn_batch.go b/conn_batch.go
index f463e4f91c..e59b118ca0 100644
--- a/conn_batch.go
+++ b/conn_batch.go
@@ -78,14 +78,15 @@ func (c *connect) prepareBatch(ctx context.Context, query string, opts driver.Pr
}
b := &batch{
- ctx: ctx,
- query: query,
- conn: c,
- block: ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The WithCloseQuery option should be renamed to WithCloseOnFlush with a clearer doc comment, per the suggested block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PrepareBatchOptions field CloseQuery should be rename... | null |
ClickHouse__clickhouse-go__1389 | ClickHouse/clickhouse-go | 1,389 | defect | 5a3d28a883817b40bdb74b5a53b92f098272e737 | f45be273206be2e46aefba79b1a8edf4c526aa3b | Add ability to handle context cancellations for TCP protocol | ## Summary
Issue:
- https://github.com/ClickHouse/clickhouse-go/issues/1388
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG
- [x] For significant c... | diff --git a/.gitignore b/.gitignore
index 2d3f9ae66c..2e8e75bad6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,6 +27,7 @@ _testmain.go
coverage.txt
.idea/**
+.vscode/**
dev/*
.run/**
diff --git a/conn.go b/conn.go
index 6d831a0478..11567b79f4 100644
--- a/conn.go
+++ b/conn.go
@@ -25,6 +25,7 @@ import (
"l... | 1 | 1 | 0 | [{"id": "G0", "claim": "The newly added generic `mutex` field on connect should be renamed to `readerMutex` so its name says what it guards.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ClickHouse__clickhouse-go__142 | ClickHouse/clickhouse-go | 142 | defect | 85ef7bd92ee632975d606f38adeedb93b3fd4f26 | a038b3e88fc7dedd07d105f75bfa81d4afcb23f0 | Date column reading and writing with zone offset fixed | Sorry, I opened the older pr without a complete testing. It did not solve this problem [issue140](https://github.com/kshvakov/clickhouse/issues/140)
Now, I open this pr for this problem.
Insert by golang:
 (Column, error) {
valueOf: baseTypes[string("")],
},
}, nil
- case "Date", "Date... | 2 | 1 | 1 | [{"id": "G0", "claim": "The reviewer asks why Date.Write uses value.Zone() instead of dt.offset, which the Read path uses.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add tests covering the Date column read/write with zone offs... | null |
ClickHouse__clickhouse-go__1426 | ClickHouse/clickhouse-go | 1,426 | defect | fcf5831835335a86078abfb224fdcc33ab4bddc0 | 362c7404e6c21ca4d04763dde82a7158a8113602 | [improvement] Some performance related changes to evaluate | ## Summary
Based on some CPU and memory analysis we ran on our production systems, we noticed a few things that could be improved.
I'd like to present these and discuss whether it makes sense to merge these into the project (otherwise we'll likely keep these on a local fork). Also some changes perhaps need a bit ... | diff --git a/go.mod b/go.mod
index fd9ff7a9c8..9578a38d37 100644
--- a/go.mod
+++ b/go.mod
@@ -70,6 +70,7 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0 // indirect
go.opentelemetry.io/otel/metric v1.26.0 // indirect
golang.org/x/crypto v0.28.0 // indirect
+ golang.org/x/exp ... | 9 | 5 | 2 | [{"id": "G0", "claim": "The non-standard imports in lib/column/enum.go should not be mixed with the standard library imports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Enum min/max should be computed in the existing range loop instead of cr... | null |
ClickHouse__clickhouse-go__1469 | ClickHouse/clickhouse-go | 1,469 | defect | 017f3792e8d05106177739a80f4b1a8379642c85 | b5e27f0e897344e3b17110d93dcae0b5b0c77cbb | stdlib sql return precision for DateTime64 | ## Summary
closes #1462
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
| diff --git a/clickhouse_std.go b/clickhouse_std.go
index 466d345fb2..e747c0ffe4 100644
--- a/clickhouse_std.go
+++ b/clickhouse_std.go
@@ -445,10 +445,16 @@ func (r *stdRows) ColumnTypePrecisionScale(idx int) (precision, scale int64, ok
switch col := r.rows.block.Columns[idx].(type) {
case *column.Decimal:
retur... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new \"DateTime64 precision\" test can drop its CheckMinServerVersion(conn, 20, 3, 0) skip check because tests are no longer run against that old server version.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
ClickHouse__clickhouse-go__1523 | ClickHouse/clickhouse-go | 1,523 | defect | 02c932f4f2aa09fe815efb33898955b01de6bf09 | fdf2209251fc4f06cf1f79b4740e4912580357e7 | fix concurrent map write errors with context | ## Summary
closes #1503
This PR fixes 3 bugs:
1. A concurrent map write error where `clickhouse.WithSettings()` maps are re-used between context/calls
2. Per-query settings will no longer override subsequent queries
3. An edge case where an empty `clickhouse.WithSettings(nil)` map could result in a nil write pa... | diff --git a/clickhouse_std.go b/clickhouse_std.go
index 1f2b5ac9e4..c6871d4a9e 100644
--- a/clickhouse_std.go
+++ b/clickhouse_std.go
@@ -306,8 +306,8 @@ func (std *stdDriver) ExecContext(ctx context.Context, query string, args []driv
}
var err error
- if options := queryOptions(ctx); options.async.ok {
- err =... | 1 | 1 | 0 | [{"id": "G0", "claim": "The Context function's doc comment should be expanded into a more detailed description of its derivation and option-merging behaviour.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ClickHouse__clickhouse-go__1538 | ClickHouse/clickhouse-go | 1,538 | defect | 977290d6462351364e12e1a63d33e2e90d6ecf94 | 537e530038a1a3f08d90cf289680de0064f8d60b | JWT Authentication | ## Summary
closes #1445
This PR adds support for JWT authentication to Native/HTTP interfaces, and the `database/sql` connector.
To use JWT, provide a `GetJWT` implementation in the `clickhouse.Options` struct:
```go
getJWT := func(ctx context.Context) (string, error) {
return GetEnv("example jwt"), nil
... | diff --git a/.github/workflows/run-tests-cloud.yml b/.github/workflows/run-tests-cloud.yml
index cd9320263f..a42d1c5bdf 100644
--- a/.github/workflows/run-tests-cloud.yml
+++ b/.github/workflows/run-tests-cloud.yml
@@ -6,6 +6,7 @@ on:
push:
branches:
- main
+ - jwt-auth
workflow_dispatch:
pull... | 5 | 4 | 1 | [{"id": "G0", "claim": "Trigger the cloud test workflow from a PR label instead of adding the jwt-auth branch to the push triggers.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "UpdateJWT should accept a callback that provides the JWT instead of a token... | null |
ClickHouse__clickhouse-go__1570 | ClickHouse/clickhouse-go | 1,570 | defect | 60e12a0da85bb63bc36a92806ed488d6fb764bea | c88fb1750e3a84e3969dfa9101696fb8af31eefa | Supports scanning of Array, IPv4, IPv6, and Map types into Go values that implement the `sql.Scanner` interface. | ## Summary
Supports scanning of Array, IPv4, IPv6, and Map types into Go values that implement the `sql.Scanner` interface.
## Checklist
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG
Does the ... | diff --git a/lib/column/array.go b/lib/column/array.go
index 2a0c17d40d..f510bfb10d 100644
--- a/lib/column/array.go
+++ b/lib/column/array.go
@@ -18,6 +18,7 @@
package column
import (
+ "database/sql"
"fmt"
"github.com/ClickHouse/ch-go/proto"
"reflect"
@@ -25,6 +26,8 @@ import (
"time"
)
+var scanTypeAn... | 2 | 1 | 0 | [{"id": "G0", "claim": "For consistency with the other tests, replace require.Nil(t, batch.Send()) with require.NoError(t, batch.Send()) in TestSQLScannerArray.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "To maintain consistency with similar tests, u... | null |
ClickHouse__clickhouse-go__1656 | ClickHouse/clickhouse-go | 1,656 | defect | d21b777965f57b9a78c5bd36f1a24192899a13b8 | d26c85f23cc461a557a1d50e08641301c1e5426c | feat: add custom http transport | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
This makes it possible to set a custom transport for the underlying http client.
## Checklist
Delete items not relevant to your PR:
- [x] A human-readable description of the changes was provided to include in CHANGELOG | diff --git a/CHANGELOG.md b/CHANGELOG.md
index edf708945e..35de01fecd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,9 @@
# v2.40.3, 2025-09-13 <!-- Release notes generated using configuration in .github/release.yml at main -->
## What's Changed
+### Enhancements 🎉
+* Add option to set custom http tra... | 3 | 1 | 1 | [{"id": "G0", "claim": "The custom transport should be assigned right after the default transport's creation, because replacing it only at the end risks losing mutations applied to the default transport (like DialContext) unless the consumer copies all options correctly.", "category": "design", "verdict": "opposed", "p... | null |
ClickHouse__clickhouse-go__1667 | ClickHouse/clickhouse-go | 1,667 | defect | 12088fe6b4a62f27e7cdb43d3bbebbcfccd9a5cb | 91e9dd51050a2f23cea2d374eff7b125373b0fe2 | bug: Fix Nullable(JSON) with `nil` map | Fixes: #1638
[See this discussion](https://github.com/ClickHouse/clickhouse-go/issues/1638#issuecomment-3318232730)
The actual bug is in the `Nullable` [column here.](https://github.com/ClickHouse/clickhouse-go/blob/12088fe6b4a62f27e7cdb43d3bbebbcfccd9a5cb/lib/column/nullable.go?plain=1#L134-L136)
We check if ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a10bcac979..221bf17425 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,7 @@
* bug: deserializing into nullable field by @rbroggi in https://github.com/ClickHouse/clickhouse-go/pull/1649
* Fixes for #1649 by @SpencerTorres in https://github.com/ClickHouse/clickho... | 2 | 2 | 0 | [{"id": "G0", "claim": "The test should also cover the Nullable(JSON) case with predefined (typed) JSON paths, as shown in the referenced comment.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A nil Slice could cause the same issue, so it should also b... | null |
ClickHouse__clickhouse-go__1686 | ClickHouse/clickhouse-go | 1,686 | defect | a35898e6c634686253c14adc7f24349994fcb2f2 | 30c4d8093978d5ee799bb66527302f902d9a95f1 | fix: Don't scan profile events if listener is not set | ## Summary
Fixes https://github.com/ClickHouse/clickhouse-go/issues/1685. A better way would be to be able to disable these events altogether from being returned to the client.
Also, if this PR is accepted we might want to do the same for other listeners, though I haven't seen a big issue with allocations in othe... | diff --git a/conn_process.go b/conn_process.go
index 21872f73c7..db600a7bb1 100644
--- a/conn_process.go
+++ b/conn_process.go
@@ -1,4 +1,3 @@
-
package clickhouse
import (
@@ -185,11 +184,14 @@ func (c *connect) handle(ctx context.Context, packet byte, on *onProcess) error
}
c.debugf("[table columns]")
cas... | 4 | 1 | 0 | [{"id": "G0", "claim": "The `if scanEvents` guard in conn_process.go is redundant and should be removed so `on.profileEvents(events)` is called unconditionally, relying on the nil check in context.go.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
ClickHouse__clickhouse-go__1693 | ClickHouse/clickhouse-go | 1,693 | defect | 3ad16cc4646aea6a001f3ac12fffd2a24658c57f | 13b67ff996a8a0dda84245b5559275a9f9479073 | Allow oneline comment in insert query | ## Summary
This PR adds support for SQL single-line comments before INSERT statements in batch operations. This enhancement improves compatibility with SQL tools and query builders that automatically add comments to generated queries.
## Checklist
Delete items not relevant to your PR:
- [*] Unit and integration ... | diff --git a/batch.go b/batch.go
index e71ea2655e..f2250a46cc 100644
--- a/batch.go
+++ b/batch.go
@@ -1,4 +1,3 @@
-
package clickhouse
import (
@@ -7,7 +6,7 @@ import (
"strings"
)
-var normalizeInsertQueryMatch = regexp.MustCompile(`(?i)(INSERT\s+INTO\s+([^(]+)(?:\s*\([^()]*(?:\([^()]*\)[^()]*)*\))?)(?:\s*VA... | 3 | 2 | 2 | [{"id": "G0", "claim": "The purpose of the change is unclear because single-line comments already seem to work with INSERTs — all of the PR's tests except the last one already pass on the main branch.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ... | null |
ClickHouse__clickhouse-go__1694 | ClickHouse/clickhouse-go | 1,694 | defect | acdf7c7cc254c90004a97cba5c41dbd037c8fbfc | 6ae160a60e39ff560814f77a3a5f2b45a333d867 | feat: Add support for proper exception handling | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
Related: #1468
This PR adds support to extract the exception happens during mid-stream. Supports generic exception marker for both CH 24.11 and before.
## Checklist
Delete items not relevant to your PR:
- [x] Unit and in... | diff --git a/conn_http.go b/conn_http.go
index 3aae375074..fb9627a122 100644
--- a/conn_http.go
+++ b/conn_http.go
@@ -420,7 +420,7 @@ func (h *httpConnect) writeData(block *proto.Block) error {
return nil
}
-func (h *httpConnect) readData(reader *chproto.Reader, timezone *time.Location) (*proto.Block, error) {
+f... | 5 | 5 | 2 | [{"id": "G0", "claim": "Add a debug log on the error path where reading remaining data after a failed block decode fails.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 100KiB limit with 4KiB chunks means up to 25 socket IO calls to read rem... | null |
ClickHouse__clickhouse-go__1727 | ClickHouse/clickhouse-go | 1,727 | defect | b4fd33ba1cf3babe09d21a79b90a377aeaa532ac | 787879587f78b0a2a4b9a75b52ad05025f3d4159 | bug: Fix `formatTime` escaping |
## Summary
<!-- A short description of the changes with a link to an open issue. -->
Currently formatTime do not properly escape the timezone info passed to it. Meaning timezone info can contain malicious SQL.
This PR makes sure it's properly escaped
Fixes: #1713
## Checklist
Delete items not relevant ... | diff --git a/bind.go b/bind.go
index f0fe30f1d2..12efa00a53 100644
--- a/bind.go
+++ b/bind.go
@@ -252,10 +252,14 @@ func formatTime(tz *time.Location, scale TimeUnit, value time.Time) (string, err
}
return fmt.Sprintf("toDateTime64('%s', %d)", value.Format(fmt.Sprintf("2006-01-02 15:04:05.%0*d", int(scale*3), 0)... | 1 | 1 | 1 | [{"id": "G0", "claim": "Escaping the timezone name instead of validating it may send an invalid timezone string to the server; the client should not accept it and should instead detect when escaping changed the value (compare escaped vs unescaped length) and return an error informing the application owner.", "category"... | null |
ClickHouse__clickhouse-go__1752 | ClickHouse/clickhouse-go | 1,752 | defect | ace04525c6a27e4ae45a89763ae49218c0edf31d | 781840fd1527075adfb13e31939699d4c99f70e2 | fix: Fixes the failure againt HEAD of CH server | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
Two changes:
1. We cannot use async_insert and quorum_insert settings together in latest CH
2. Then version check for `supportsFlatDynamicJSON` was buggy. Causing it to return false for version26.1 (major >=25, but minor <6) (Tha... | diff --git a/docker-compose.yml b/docker-compose.yml
index 12124566cb..e6f67a4344 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -5,7 +5,7 @@ services:
networks:
- clickhouse
container_name: clickhouse
- image: clickhouse/clickhouse-server:25.11
+ image: 'clickhouse/clickhouse-server... | 2 | 1 | 1 | [{"id": "G0", "claim": "The docker-compose image reference should be just `${CLICKHOUSE_VERSION}` rather than `${CLICKHOUSE_VERSION-25.12-alpine}`, since the variable name already carries the version.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "supports... | null |
ClickHouse__clickhouse-go__1759 | ClickHouse/clickhouse-go | 1,759 | defect | 27a3a82cc8bdacd10c4c2a4c01040b89300b97fc | 9b3640f1c61b2974d27121b0ee311e82e30f7d02 | fix: Fix connection slot leak when context is cancelled during acquire | Fixes a connection pool leak that happens when a query context is cancelled while acquiring a connection. When `acquire()` gets a connection slot from the `ch.open` channel but then `ch.idle.Get(ctx)` returns a context cancellation error, we were returning immediately without releasing that slot. After enough cancelle... | diff --git a/clickhouse.go b/clickhouse.go
index 3d971e63fe..b52ac777e6 100644
--- a/clickhouse.go
+++ b/clickhouse.go
@@ -312,6 +312,10 @@ func (ch *clickhouse) acquire(ctx context.Context) (conn nativeTransport, err er
conn, err = ch.idle.Get(ctx)
if err != nil && !errors.Is(err, errQueueEmpty) {
+ select {
+ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new slot-leak test skips HTTP connections even though both TCP and HTTP use pooling via the acquire() API, so the fix's behaviour over HTTP is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ClickHouse__clickhouse-go__1770 | ClickHouse/clickhouse-go | 1,770 | defect | 807d28fff83734ad7ba611a88c7039a0eb292b4d | c19117a1cf45f2336f58295d862b555682963ab8 | fix: Panic when scanning nullable JSON using a pointer to `clickhouse.JSON` | ## Summary
Without this fix scanning a `Nullable(JSON)` into `*clickhouse.JSON` panics
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG
- [x] For s... | diff --git a/lib/column/json.go b/lib/column/json.go
index ef51ec8baa..49780292cc 100644
--- a/lib/column/json.go
+++ b/lib/column/json.go
@@ -270,6 +270,7 @@ func (c *JSON) scanRowObject(dest any, row int) error {
return nil
case **chcol.JSON:
obj := c.rowAsJSON(row)
+ *v = new(chcol.JSON)
**v = *obj
re... | 3 | 1 | 1 | [{"id": "G0", "claim": "The **chcol.JSON scan case allocates twice (rowAsJSON already returns a newly allocated *JSON, then new(chcol.JSON) allocates again just to copy the struct), so the extra allocation/copy can be avoided by assigning the pointer directly (*v = obj).", "category": "performance", "verdict": "opposed... | null |
ClickHouse__clickhouse-go__1771 | ClickHouse/clickhouse-go | 1,771 | defect | aebb65f56bab7308e4359d70c04ca44535b937d4 | bbc9e9dad2506adf4bf16a4a433a31d371b25ff5 | fix: inconsistent results for nil in Json.AppendRow | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
try to fix #1768
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG... | diff --git a/lib/column/json.go b/lib/column/json.go
index ef51ec8baa..6f02be76a8 100644
--- a/lib/column/json.go
+++ b/lib/column/json.go
@@ -411,12 +411,12 @@ func (c *JSON) AppendRow(v any) error {
}
var err error
- if err = c.appendRowString(v); err == nil {
- c.serializationVersion = JSONStringSerializa... | 8 | 4 | 2 | [{"id": "G0", "claim": "Add tests to lock in the fixed nil-handling behaviour of JSON.AppendRow and avoid regressions later.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment above the detection logic (\"try string first unless its specifically... | null |
ClickHouse__clickhouse-go__1781 | ClickHouse/clickhouse-go | 1,781 | defect | 2e4ec854a35ca9c2a876cedccead7d2247fd3269 | bf5a39792fd24f00f5f2a40802ed2b17b0d84eaf | Fix #1775: omit absent JSON keys when scanning into map[string]any | ## Summary
Fixes #1775.
When scanning ClickHouse `JSON` into `map[string]any`, the driver was adding keys with `nil` values even when those keys were not present in the current row.
This change updates JSON map scan behavior to:
- skip missing leaf keys (do not materialize them as `nil`)
- skip empty nested ma... | diff --git a/lib/column/json_reflect.go b/lib/column/json_reflect.go
index 5d9b8e2873..16e59cdc45 100644
--- a/lib/column/json_reflect.go
+++ b/lib/column/json_reflect.go
@@ -191,9 +191,11 @@ func (c *JSON) fillMap(val reflect.Value, prefix string, row int) error {
value = dyn.Any()
}
- if value != n... | 1 | 1 | 0 | [{"id": "G0", "claim": "Restructure the test dataset so each inserted JSON object sits next to the keys expected (and not expected) in its scanned map.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ClickHouse__clickhouse-go__1796 | ClickHouse/clickhouse-go | 1,796 | defect | 00a13b780960c6cc9f9eadac3bdb47eee8ba3047 | 11d9fde37197b71b49430057992f55af30a68fff | feat: add HasData() bool to driver.Rows | ## Summary
* Adds `HasData() bool` to the `driver.Rows` interface, allowing callers to check if a query returned data without consuming rows
* Implements on the `rows` struct by peeking through the block stream, skipping empty/metadata blocks until a data block with rows is found or end-of-stream is reached
* No ... | diff --git a/clickhouse_rows.go b/clickhouse_rows.go
index e2b3af0894..fe1811f4cc 100644
--- a/clickhouse_rows.go
+++ b/clickhouse_rows.go
@@ -125,6 +125,33 @@ func (r *rows) Err() error {
return r.err
}
+func (r *rows) HasData() bool {
+ for {
+ if r.block != nil && r.block.Rows() > 0 {
+ return true
+ }
+ i... | 3 | 2 | 2 | [{"id": "G0", "claim": "Adding HasData() to the public driver.Rows interface breaks existing implementations outside the repo in a non-v3 release, so it should be moved to a separate interface like RowsWithHasData.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
ClickHouse__clickhouse-go__577 | ClickHouse/clickhouse-go | 577 | defect | 709552525332569d5c212b7de6c0b268075e5fbe | 9200add4c69f6dd89fcc2e050bef0cc0a69bb4c6 | Support for positional arguments | Closes https://github.com/ClickHouse/clickhouse-go/issues/542
Benchmark suggests this is actually more performant than numeric. | diff --git a/bind.go b/bind.go
index 4223e89fe0..60c680c7d0 100644
--- a/bind.go
+++ b/bind.go
@@ -35,32 +35,70 @@ func Named(name string, value interface{}) driver.NamedValue {
}
}
+var bindNumericRe = regexp.MustCompile(`\$[0-9]+`)
+var bindPositionalRe = regexp.MustCompile(`[?]`)
+
func bind(tz *time.Location,... | 3 | 1 | 1 | [{"id": "G0", "claim": "Matching any bare `?` as a positional placeholder is fragile because question marks inside string literals would be replaced; the reviewer suggests requiring a space before and a space or EOL after.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
ClickHouse__clickhouse-go__837 | ClickHouse/clickhouse-go | 837 | defect | 039e1eaeca47452e402b810365ed141e4bb99fc4 | 861a00d9541d97ecde6d40395bc79e098f6e4490 | Read only user integration tests | Draft a proposal to make it possible to establish a read-only user connection in tests. It can be used to cover further use cases.
Connection initialization may require additional attention in the future if it grows more.
Resolves #736 | diff --git a/tests/conn_test.go b/tests/conn_test.go
index 0422815ca3..812168b805 100644
--- a/tests/conn_test.go
+++ b/tests/conn_test.go
@@ -242,3 +242,33 @@ func TestBlockBufferSize(t *testing.T) {
}
require.Equal(t, 10000000, i)
}
+
+func TestReadOnlyUserConnInsert(t *testing.T) {
+ conn, err := GetNativeConne... | 3 | 3 | 0 | [{"id": "G0", "claim": "Create the read-only test users dynamically (as the clickhouse-js fixture does) instead of declaring a static readonly user in tests/resources/admin.xml, for better isolation between test suites.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
ClickHouse__clickhouse-go__854 | ClickHouse/clickhouse-go | 854 | defect | 52427d3882c06047ef8e77c57ce9a4cb527308dc | 275df7642e06eec0aecd8f518cbd7cb08bc53e23 | Query parameters support | Add a basic query parameters support as implemented in https://github.com/ClickHouse/ClickHouse/pull/39906
This implementation is basic and does not support type conversion. The user is forced to pass parameter values as a string compatible with [CH syntax literals](https://clickhouse.com/docs/en/sql-reference/syntax#... | diff --git a/README.md b/README.md
index 8295b3693f..c80b71a142 100644
--- a/README.md
+++ b/README.md
@@ -38,12 +38,14 @@ The client is tested against the currently [supported versions](https://github.c
* Named and numeric placeholders support
* LZ4/ZSTD compression support
* External data
+* [Query parameters](exa... | 1 | 1 | 1 | [{"id": "G0", "claim": "In bindQueryOrAppendParameters, when the arguments passed are not a list of driver.NamedValue (or their values are not strings), parameters are silently dropped instead of raising an error; the reviewer asks what happens on mismatch and whether an error should be raised.", "category": "correctne... | null |
ClickHouse__clickhouse-go__991 | ClickHouse/clickhouse-go | 991 | defect | e1ca29dc057ef9701a8be52aec3fa36a8c2613e8 | b273e051c40b6fc9fa154d10d7f892970ac13c9c | support http connection reuse after external table query execution | ## Summary
Support http connection reuse after external table query execution and fix #990
## Checklist
- [x] Unit and integration tests covering the common scenarios were added
| diff --git a/conn_http.go b/conn_http.go
index 3652e79549..c324c11aa8 100644
--- a/conn_http.go
+++ b/conn_http.go
@@ -388,7 +388,7 @@ func (h *httpConnect) readData(ctx context.Context, reader *chproto.Reader) (*pr
}
func (h *httpConnect) sendStreamQuery(ctx context.Context, r io.Reader, options *QueryOptions, hea... | 1 | 1 | 0 | [{"id": "G0", "claim": "createRequestPayloadWithExternalTables should return the entire *http.Request instead of a few values, or mutate a request struct (suggested as appendExternalTablesToRequest(ctx, r *http.Request, ...)).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ClickHouse__clickhouse-java__2645 | ClickHouse/clickhouse-java | 2,645 | defect | 2d9922f3f4e34e301fd7af05588d9b0d1f016739 | 003a5f02fbb81c8931089f0de124e1bff4806979 | [V1, V2] Fix http compression | ## Summary
- Fixes issue with http compression in V1 client and driver caused by setting `accept-encoding` when LZ4 algorithm is set (default). What caused misalignment in logic - server was sending http compressed stream and client expected data compressed only and was using another LZ4 algorithm.
- Added support o... | diff --git a/clickhouse-http-client/src/main/java/com/clickhouse/client/http/ClickHouseHttpConnection.java b/clickhouse-http-client/src/main/java/com/clickhouse/client/http/ClickHouseHttpConnection.java
index c8d801ce9..06dcfe1fa 100644
--- a/clickhouse-http-client/src/main/java/com/clickhouse/client/http/ClickHouseHtt... | 11 | 1 | 0 | [{"id": "G0", "claim": "The insertRawDataCompressedProvider should use the compression algorithm name \"gzip\" instead of \"gz\", which is used inconsistently with QueryServerHttpCompressionTests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Compr... | null |
ClickHouse__clickhouse-java__2663 | ClickHouse/clickhouse-java | 2,663 | defect | d38c31bd14736a858d26f98afc144b766fed9558 | 185c626dac15d7ed8af8ca75f4dd764eb187330f | [jdbc-v2] Support multi-dot notation for database names | ## Description
Fixes #2650
This PR adds support for multi-dot notation in database names without requiring quotes, enabling table references like `a.b.c` where `a.b` is the database name and `c` is the table name.
## Changes
- **Grammar**: Updated ANTLR `databaseIdentifier` rule to support multiple dot-separated ide... | diff --git a/jdbc-v2/src/main/antlr4/com/clickhouse/jdbc/internal/parser/antlr4/ClickHouseParser.g4 b/jdbc-v2/src/main/antlr4/com/clickhouse/jdbc/internal/parser/antlr4/ClickHouseParser.g4
index 82c2b6cab..b6ab82131 100644
--- a/jdbc-v2/src/main/antlr4/com/clickhouse/jdbc/internal/parser/antlr4/ClickHouseParser.g4
+++ ... | 4 | 3 | 2 | [{"id": "G0", "claim": "extractTableName appends a dot after the database identifier without first checking whether the table identifier is null, which can leave the table name ending with a dot; add a check before appending the dot.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
ClickHouse__clickhouse-java__2667 | ClickHouse/clickhouse-java | 2,667 | defect | 235880b9d470c31b7bbab22354500f65dda74361 | d7856fd6703dfb34f23b6dec0297f2fe83013636 | Fix array tests | ## Summary
Fixes issue with nested arrays.
Closes https://github.com/ClickHouse/clickhouse-java/issues/2457
## Checklist
Delete items not relevant to your PR:
- [x] Closes #<issue ref>
- [ ] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes ... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.java
index 4b8b00a39..81ceb5fa9 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.java
+++ b/jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcUtils.... | 3 | 1 | 0 | [{"id": "G0", "claim": "If the actual nesting level of the data exceeds the declared dimensions parameter, the new dimension handling in convertList/convertArray could lead to runtime errors; add validation or handling for data nested deeper than declared.", "category": "correctness", "verdict": "uncertain", "priority"... | null |
ClickHouse__clickhouse-java__2677 | ClickHouse/clickhouse-java | 2,677 | defect | e2cd51ec3f23881cc8848f399fbc50dcf030f320 | 6344ece62c5b4e91f26c234ad1e2b38e98856686 | [JDBC-V2] Review database metadata | ## Summary
- Updates max values to correlate with actual limitations. Some limitations are done as guardrails.
- Adds verification test for table types.
- Updates support and similar flags.
Closes https://github.com/ClickHouse/clickhouse-java/issues/2520
Closes https://github.com/ClickHouse/clickhouse-java/... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java
index 5289eb5fb..a63335d74 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java
+++ b/jdbc-v2/src/main/java/com/cl... | 8 | 3 | 2 | [{"id": "G0", "claim": "supportsDifferentTableCorrelationNames() returns true with a comment saying 'no support', which is contradictory; the reviewer says the method should return false because ClickHouse does not require the correlation name to differ from the table name, and the comment should not contradict the val... | null |
ClickHouse__clickhouse-java__2682 | ClickHouse/clickhouse-java | 2,682 | defect | 81b12e74956cc3b965270e306628fffb267ef55a | 597ad852eaed8ba25ec3e663c33a30c4b5297d3d | [jdbc-v2] Handling Time Time64 in JDBC | ## Summary
- Adds `Time/Time64 convertion to `java.sql.Time` even last do not support negative time and is not convenient to work with.
- Adds tests
Previously `Time` and `Time64` would be read as `Integer` and `Long` respectively because `java.sql.Time` doesn't support negative dates and is inconvenient to work... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/ResultSetImpl.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/ResultSetImpl.java
index 8437d36d2..b85d438fa 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/ResultSetImpl.java
+++ b/jdbc-v2/src/main/java/com/clickhouse/jdbc/ResultSetImpl.java
@@ -33,6 +33,7 ... | 8 | 4 | 1 | [{"id": "G0", "claim": "The import com.clickhouse.client.api.DataTypeUtils is added to JdbcUtils.java but never used in this file; remove it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new parameter column is added to JdbcUtils.convertOb... | null |
ClickHouse__clickhouse-java__2691 | ClickHouse/clickhouse-java | 2,691 | defect | bbc1af20bceae283fdcee71c87c5db534cc7e77d | 99dfb3fbde61afe13560ed2c7c02427b9e00e798 | ✨[client-v2, jdbc-v2] Allow setting http path in URL | ## Summary
This pull request improves support for HTTP endpoints with custom paths, which is important for scenarios involving reverse proxies or virtual ClickHouse instances. It ensures that endpoint URLs with paths are correctly parsed and preserved in both the core client and JDBC layers. Comprehensive integration ... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/Client.java b/client-v2/src/main/java/com/clickhouse/client/api/Client.java
index f7cc187d4..7efbab164 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/Client.java
+++ b/client-v2/src/main/java/com/clickhouse/client/api/Client.java
@@ -288,21 ... | 8 | 3 | 0 | [{"id": "G0", "claim": "URL-encoded slashes (%2F) might not be handled correctly when splitting the raw path: encoded slashes could be treated as separators when determining the database name; consider URI path segment parsing or explicitly handling encoded slashes.", "category": "correctness", "verdict": "opposed", "p... | null |
ClickHouse__clickhouse-java__2698 | ClickHouse/clickhouse-java | 2,698 | defect | b2429555762b1bbf92461ba05190d291e53221b5 | f49607879f061d89581e48f98f075b6ebea24fa9 | [jdbc-v2, client-v2] Improve messages for unknown data types | ## Summary
- Improves messages about unknown data type
## Checklist
Delete items not relevant to your PR:
- [ ] Closes #<issue ref>
- [x] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For signific... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/internal/TableSchemaParser.java b/client-v2/src/main/java/com/clickhouse/client/api/internal/TableSchemaParser.java
index 74a1ba1b2..e3e3b95ce 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/internal/TableSchemaParser.java
+++ b/client-v2/src... | 4 | 1 | 0 | [{"id": "G0", "claim": "The two new log.error calls in DatabaseMetaDataImpl.getTypeInfo concatenate typeName into the message and should use parameterized logging (e.g. log.error(\"Unknown type: {}. Please check for a new version of the client.\", typeName)) for better performance.", "category": "performance", "verdict... | null |
ClickHouse__clickhouse-java__2706 | ClickHouse/clickhouse-java | 2,706 | defect | 0a373776aa68a744cb21de1e158c896d1019d0e1 | 6ccf39a975e07784fa8549cdbd170b07df0c45d4 | upgraded lz4 version | ## Summary
- Upgrades lz4 library version
- The LZ4 Library was moved to `at.yawk.lz4` BUT package has not been changed so NO relocation rules should be changed.
- Latest LZ4 library version do not have Unsafe factory instance because of security concerns and JVM limitations. Test was updated.
Closes http... | diff --git a/clickhouse-data/pom.xml b/clickhouse-data/pom.xml
index c378760f2..9fa5c1173 100644
--- a/clickhouse-data/pom.xml
+++ b/clickhouse-data/pom.xml
@@ -67,7 +67,7 @@
</dependency>
<dependency>
- <groupId>org.lz4</groupId>
+ <groupId>at.yawk.lz4</groupId>
<... | 2 | 1 | 1 | [{"id": "G0", "claim": "The at.yawk.lz4:lz4-java dependency in clickhouse-http-client is declared with test scope instead of the compile/optional scope the previous lz4-pure-java dependency had, so LZ4 may be unavailable at runtime and the shaded JAR will miss the LZ4 classes, causing ClassNotFoundException for users o... | null |
ClickHouse__clickhouse-java__2707 | ClickHouse/clickhouse-java | 2,707 | defect | 3171c01b2306aab09b02c69c070f16df2be6cd1b | c46e90a50b15877dafab0aecdff18e140297c18e | Pre 0.9.6 | ## Summary
- Updates version
- Updates changelog
- Updates current year in some projects
- Update current year in LICENSE
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Prepares the 0.9.6 line and documents changes.
>
> - Bumps versions to `0.9.6-SNAPSHOT` across repo (`pom.xml`, examples, `performance/pom.x... | diff --git a/.github/workflows/run_examples.yml b/.github/workflows/run_examples.yml
index 33dda97ca..e67a3a473 100644
--- a/.github/workflows/run_examples.yml
+++ b/.github/workflows/run_examples.yml
@@ -16,7 +16,7 @@ on:
nightly_version:
description: Nightly Version
required: false
- d... | 1 | 1 | 0 | [{"id": "G0", "claim": "The project's current-year metadata in pom.xml should be updated from 2025 to 2026.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
ClickHouse__clickhouse-java__2710 | ClickHouse/clickhouse-java | 2,710 | defect | b87bc2840b7400de7a528bc77d349ba49794b420 | 26f5d23b08588b7c1048e0f42c7263376d076c3a | [client-v2,jdbc-v2] Fix Writing Date/Time values | ## Summary
- Fixes writing date/time values
- Fixes timezone conversion
Closes https://github.com/ClickHouse/clickhouse-java/issues/2701
Closes https://github.com/ClickHouse/clickhouse-java/issues/2065
Closes https://github.com/ClickHouse/clickhouse-java/issues/2496
Closes https://github.com/ClickHouse/click... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/DataTypeUtils.java b/client-v2/src/main/java/com/clickhouse/client/api/DataTypeUtils.java
index 6840e8101..2d3ce3561 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/DataTypeUtils.java
+++ b/client-v2/src/main/java/com/clickhouse/client/api/Da... | 8 | 5 | 4 | [{"id": "G0", "claim": "The setObject(int, Object, SQLType, int) overload completely ignores targetSqlType and does not call isValidForTargetType, unlike the other three setObject overloads, so type mismatches silently pass through this one.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
ClickHouse__clickhouse-java__2712 | ClickHouse/clickhouse-java | 2,712 | defect | 5bfdbe2722c0500dc664114d2e9a23ab3bebdcdd | 1360aa6acd06e3bcc54d232d8c439ef175484c70 | [client-v2, jdbc-v2] Handling of unknown parameters | ## Summary
- Throw on unknown parameter. Can be bypassed by adding `no_throw_on_unknown_config` to properties. Parsing happens on `.build()`
- Fixed passing parameters to server when prefixed with `custom_`
- Fixed JDBC driver parameters were passed to client (like `ssl` as it is only for driver)
Custom [setti... | diff --git a/clickhouse-r2dbc/src/test/java/com/clickhouse/r2dbc/spi/test/R2DBCTestKitImplTest.java b/clickhouse-r2dbc/src/test/java/com/clickhouse/r2dbc/spi/test/R2DBCTestKitImplTest.java
index 38f8b6ace..510bd614f 100644
--- a/clickhouse-r2dbc/src/test/java/com/clickhouse/r2dbc/spi/test/R2DBCTestKitImplTest.java
+++ ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request should add examples of how the behaviour changed for jdbc settings, java client settings, and clickhouse settings.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In testCustomSettings the condition `if (!is... | null |
ClickHouse__clickhouse-java__2733 | ClickHouse/clickhouse-java | 2,733 | defect | 59d9678fecdee740e660ef6e7394c4cfbfbddce7 | fcb1740e1b399f9a7c968570948fe3c3eb0012bb | added test to verify that datetime and time can be used for TIME | ## Summary
- Adds test to verify that DateTime and Time can be used as TIME in JDBC.
- Added sorting datatype to match V1 behavior.
## Checklist
Delete items not relevant to your PR:
- [ ] Closes #<issue ref>
- [x] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable desc... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java
index 8c3ae2025..20aa110e9 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java
+++ b/jdbc-v2/src/main/java/com/cl... | 3 | 2 | 1 | [{"id": "G0", "claim": "The test's DateTime DDL column lacks an explicit 'UTC' timezone, so if the server's default timezone differs from UTC the test reads values with a UTC calendar and gets mismatched results; add 'UTC' to DateTime (as dateTime64 already has).", "category": "testing", "verdict": "supported", "priori... | null |
ClickHouse__clickhouse-java__2734 | ClickHouse/clickhouse-java | 2,734 | defect | 59d9678fecdee740e660ef6e7394c4cfbfbddce7 | 492f6594d06a3f04885b4c39d0245ef4e24d4c49 | Adds ability to read strings as `byte[]` | ## Summary
- Adds ability to read and write byte[] as binary strings.
- When `PreparedStatement#setBytes` used - `byte[]` encoded as `unhex(<hexstring>)` that will let write binary strings
- When `ResultSet#getBytes` used - then `byte[]` of String object will be returned. Note: still not optimal and internally logi... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java b/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java
index 03023c728..8342c6ba0 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/data_fo... | 13 | 7 | 1 | [{"id": "G0", "claim": "The String/InetAddress branches in getPrimitiveArray ignore componentType and always return byte[], which may cause a ClassCastException when reading String or InetAddress array columns via getIntArray(), getFloatArray(), etc.; the conversion should only occur when componentType equals byte.clas... | null |
ClickHouse__clickhouse-java__2735 | ClickHouse/clickhouse-java | 2,735 | defect | 47734be00827d6f5c330d2e77978ad045ae4ccc4 | b75dd059c38bcf8a44f9d28764af227693ce4911 | fixed issue converting multidimensional lists and arrays | ## Summary
- Fixes converting multi-dimensional List to an array
- Changes how child array dimensions are calculated - now it depth level of parent is used.
Closes https://github.com/ClickHouse/clickhouse-java/issues/2741
## Checklist
Delete items not relevant to your PR:
- [x] Closes #<issue ref>
- [x] Unit... | diff --git a/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java b/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java
index bb606592b..42e21b86e 100644
--- a/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java
+++ b/client-v2/src/test/java/com/clickh... | 7 | 4 | 2 | [{"id": "G0", "claim": "convertList and convertArray should sanity-check that dimensions > 0 to enforce the invariant.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "In convertList and convertArray, depth = cursor.depth - 1 can be 0 (or negative) ... | null |
ClickHouse__clickhouse-java__2737 | ClickHouse/clickhouse-java | 2,737 | defect | 3298115d5106411c2387f10308b3f33fb0bcb09b | 183a6733c51d55e552783e4be0a69dc5e6bfc3d8 | Made mapping for all known table engines to a table types in JDBC | ## Summary
- Completes list of table types with missing ones.
- Adds mapping of all know table engines to one of table type. Previously many remote tables were not seen
- Add tests with all except temporary table types. This type is valid only for a session but current http client doesn't support them.
```
+---... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java
index 69adc0d1c..02c679903 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java
+++ b/jdbc-v2/src/main/java/com/cl... | 12 | 8 | 3 | [{"id": "G0", "claim": "When TEMPORARY TABLE is not among the requested types, the engine-based filter conditions still match temporary tables because they test only t.engine, so getTables returns rows of a type the caller never requested.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ... | null |
ClickHouse__clickhouse-java__2747 | ClickHouse/clickhouse-java | 2,747 | defect | a0cea8c712c6d856bbae9b9bb41a69137cbb83c4 | 9b8cf35aa4351d41c2e43f23c8d04691451019b9 | Added getting arrays of objects and other types of arrays | ## Summary
- Adds `getObjectArray` to get `Object[]`
- Adds additional methods that get different common type arrays like `Array(Tuple())`
Closes https://github.com/ClickHouse/clickhouse-java/issues/2738
Docs: https://github.com/ClickHouse/clickhouse-docs/pull/5551
## Checklist
Delete items not relevant t... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/ClickHouseBinaryFormatReader.java b/client-v2/src/main/java/com/clickhouse/client/api/data_formats/ClickHouseBinaryFormatReader.java
index df6979412..19c8b08e9 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/ClickHou... | 1 | 1 | 1 | [{"id": "G0", "claim": "The getObjectArray methods are declared as <T> T while the implementation always returns Object[], and the Javadoc suggests Integer[][] as a valid type parameter, which would cause a ClassCastException at runtime, so they should be declared to return Object[] like the GenericRecord interface doe... | null |
ClickHouse__clickhouse-java__2749 | ClickHouse/clickhouse-java | 2,749 | defect | 620f08797aeb4e9a2d712e5b6203af0f87a8d1ec | 70d6e5e0908261b1f582b67e5f0ce6bed4b6e4f6 | [JDBC-V2] Reading/Writing arrays and tuples. | ## Summary
- fixes a small issue in `PreparedStatementImpl`
- Add more tests
Closes <!-- Link to an issue to close on merge. -->
## Checklist
Delete items not relevant to your PR:
- [ ] Closes #<issue ref>
- [ ] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable desc... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/PreparedStatementImpl.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/PreparedStatementImpl.java
index 0055bad84..436a13b07 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/PreparedStatementImpl.java
+++ b/jdbc-v2/src/main/java/com/clickhouse/jdbc/PreparedSt... | 1 | 1 | 0 | [{"id": "G0", "claim": "The debug `System.out.println(compiledSql.toString())` left in buildSQL() should be removed (or replaced with SLF4J logging) because it prints the fully compiled SQL with interpolated parameter values to stdout on every prepared statement execution.", "category": "maintainability", "verdict": "s... | null |
ClickHouse__clickhouse-java__2757 | ClickHouse/clickhouse-java | 2,757 | defect | bb676e614295d731b39356a0a34569a7292adadf | 5c89a37ab8edd78f641d61a1a6d35ecd30b4d341 | [JDBC-v2] Port some old properties | ## Summary
- REMEMBER_LAST_SET_ROLES - currently saved by default but property existed before.
- CUSTOM_HTTP_PARAMS and CUSTOM_SETTINGS - this required for some integrations to have it because share same code for V1 and V2.
- HTTP_CONNECTION_PROVIDER - not used but required for some integrations.
## Checklis... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
index b3238e872..b8354f7ec 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
+++ b/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
@@ -119,7 +... | 3 | 2 | 1 | [{"id": "G0", "claim": "The Properties object holding the SQL_PARSER setting is created in testSettingRole but never passed to any connection it creates, so the test runs three times with the default parser and the ANTLR4 and ANTLR4_PARAMS_PARSER variants are never exercised.", "category": "testing", "verdict": "suppor... | null |
ClickHouse__clickhouse-java__2758 | ClickHouse/clickhouse-java | 2,758 | defect | bb676e614295d731b39356a0a34569a7292adadf | 05ff37133c09f8f6794787fba826cb371887dc78 | [client-v2] fixed hasValue to not throw exception | ## Summary
-Fixes issue with hasValue when it throws exception for unknown column
Closes https://github.com/ClickHouse/clickhouse-java/issues/2755
## Checklist
Delete items not relevant to your PR:
- [x] Closes #<issue ref>
- [x] Unit and integration tests covering the common scenarios were added
- [x] A hum... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java b/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java
index 23b05c983..6b7f646bd 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/data_fo... | 1 | 1 | 1 | [{"id": "G0", "claim": "Replace the try/catch on NoSuchColumnException in the hasValue(String)/hasValue(int) implementations with a non-exception-based check, e.g. a TableSchema hasColumn method, to avoid the performance penalty and unspecified exception-driven API behavior.", "category": "design", "verdict": "supporte... | null |
ClickHouse__clickhouse-java__2765 | ClickHouse/clickhouse-java | 2,765 | defect | 00c098718520e741900cc6fd494cc6449c29d800 | 3ffa77ef3eb03fc5b9a77677434f92810496d60b | [jdbc-v2,client-v2] Issue Verification | ## Summary
- Adds test to verify several issues.
- Fixes reading arrays when first element is an empty collection
Closes https://github.com/ClickHouse/clickhouse-java/issues/2499
Closes https://github.com/ClickHouse/clickhouse-java/issues/2657
Closes https://github.com/ClickHouse/clickhouse-java/issues/2703
... | diff --git a/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java b/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java
index 423cb3390..7558195a4 100644
--- a/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java
+++ b/client-v2/src/test/java/com/clickh... | 1 | 1 | 0 | [{"id": "G0", "claim": "In testDateInRange, conn.createArrayOf is called with \"Array(Date)\" although per JDBC convention and the driver's own implementation the first argument is the element type, so it should be \"Date\" as every other test in the codebase uses.", "category": "correctness", "verdict": "supported", "... | null |
ClickHouse__clickhouse-java__2785 | ClickHouse/clickhouse-java | 2,785 | defect | 268f1b7227ae16d144e81f09b4f7f71b2c2e59e4 | 857cbeaeb1debe9c099f00e05cdcc088211c472d | Fixed handling unknown statements with result set | ## Summary
- Assumes that UNKNOWN statement has result set
Closes: https://github.com/ClickHouse/clickhouse-java/issues/2784
Closes: https://github.com/ClickHouse/clickhouse-java/issues/2773
## Checklist
Delete items not relevant to your PR:
- [x] Closes #<issue ref>
- [x] Unit and integration tests coverin... | diff --git a/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java b/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java
index 2045a0d29..245d06e0e 100644
--- a/client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java
+++ b/client-v2/src/test/java/com/clickh... | 7 | 7 | 5 | [{"id": "G0", "claim": "When reader.getSchema() is null, the new early `return null` bypasses the catch block that previously closed the response, so the response object obtained earlier is never closed and the HTTP response/connection resource leaks.", "category": "correctness", "verdict": "supported", "priority": "P1... | null |
ClickHouse__clickhouse-java__2793 | ClickHouse/clickhouse-java | 2,793 | defect | 6e8ea2dc436976617c4e6d92b614bb47b09422d1 | bbf7f3fc1ae697e2f0667771bdaab41f1fe6d2ce | fixed default jdbc driver client name | ## Summary
- Fixes default driver client name when client name set via config properties
Closes https://github.com/ClickHouse/clickhouse-java/issues/2775
## Checklist
Delete items not relevant to your PR:
- [ ] Closes #<issue ref>
- [ ] Unit and integration tests covering the common scenarios were added
- [... | diff --git a/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java b/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
index b8354f7ec..7328048ce 100644
--- a/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
+++ b/jdbc-v2/src/main/java/com/clickhouse/jdbc/ConnectionImpl.java
@@ -79,7 +7... | 4 | 1 | 0 | [{"id": "G0", "claim": "The test signatures (setAndGetClientInfoTest and executeQueryAndVerifyUserAgent) should declare the specific checked exceptions they can raise (e.g., SQLException) rather than a broad `throws Exception`, so failures are not masked and signatures stay precise.", "category": "maintainability", "ve... | null |
ClickHouse__clickhouse-java__2804 | ClickHouse/clickhouse-java | 2,804 | defect | 8a3e33a280cd6bcb0371c9281c01e94134db97d0 | a480c75f5f8f6a3c4c168fe21c187655bad94eef | [client-v2] Error handling | ## Summary
- Adds more information to `IOException` when reading data in `RowBinary` readers. Now time difference between error and last `next()` call is reported. Also row and column is reported .
- Adds reading 401, 403, 404 error body. Previously it was reported as server error with code `0` and no message was co... | diff --git a/clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseColumn.java b/clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseColumn.java
index 3baff8680..0c368f72b 100644
--- a/clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseColumn.java
+++ b/clickhouse-data/src/main/java/com/clickhous... | 7 | 7 | 2 | [{"id": "G0", "claim": "DataTransferException is imported but never used in AbstractBinaryFormatReader; remove the unused import.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Charset and ArrayList are imported but not used in HttpAPIClientHelp... | null |
ClickHouse__clickhouse-java__2810 | ClickHouse/clickhouse-java | 2,810 | defect | 369c6c75c64d0673b441f7119319353a59edc0c9 | d937f9579a63259018266ad6e23b985ad4df496e | [client-v2] Session API with reusable Session objects | ## Summary
Implements first-class session support in the client-v2 API with a reusable `Session` configuration object. Allows users to configure ClickHouse HTTP sessions (`session_id`, `session_check`, `session_timeout`, `session_timezone`) at both client and per-operation levels.
Closes https://github.com/ClickHouse/... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/Client.java b/client-v2/src/main/java/com/clickhouse/client/api/Client.java
index 73ec21155..5c0d52222 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/Client.java
+++ b/client-v2/src/main/java/com/clickhouse/client/api/Client.java
@@ -955,6 +... | 6 | 3 | 1 | [{"id": "G0", "claim": "Choosing the WireMock port with `new Random().nextInt(...)` can collide with an in-use port and make the session integration tests flaky, especially under parallel execution; prefer letting WireMock bind a dynamic free port.", "category": "testing", "verdict": "supported", "priority": "P2", "sco... | null |
ClickHouse__clickhouse-java__2817 | ClickHouse/clickhouse-java | 2,817 | defect | 8a3e33a280cd6bcb0371c9281c01e94134db97d0 | f2e98b68d6335fc6c831e44d632776061708ced4 | Fix NULL handling for Variant/Dynamic | ## Summary
- Writes `0` for notNull preamble of Dynamic with defaults and handles Variant `0xFF` as NULL
- Adds read/write NULL coverage for Variant/Dynamic including POJO mapping
- Restores basic auth empty-password handling and re-enables regression test for it
Closes: https://github.com/ClickHouse/clickhouse-j... | diff --git a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/RowBinaryFormatSerializer.java b/client-v2/src/main/java/com/clickhouse/client/api/data_formats/RowBinaryFormatSerializer.java
index 59205c3d0..ad8ee680a 100644
--- a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/RowBinaryForma... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR description says writeValuePreamble writes '1' for the non-null/defaults preamble, but SerializerUtils.writeNonNull() actually writes 0, so the PR description (and related docs/comments) should be updated to state the correct byte value.", "category": "documentation", "verdict": "supporte... | null |
ClickHouse__clickhouse-java__2829 | ClickHouse/clickhouse-java | 2,829 | defect | cd9b60d0cb17d971d5526e917cb13f5dad6e002c | 28cf959980da73dc2c0136a55ead3b7e57e8102a | [jdbc-v2] Fixed overriding server settings in JDBC Connection | ## Summary
Database interface should somehow tell user if data was successfully save. JDBC for this purpose make `java.sql.Statement#executeLargeUpdate(java.lang.String)` to return updated row count for DML operations. ClickHouse interface (HTTP at least) provides this count via `summary` field. However in case of e... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f836a5c89..3afd247d9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,9 @@
+## 0.9.9
+
+
+### Bug Fixes
+- **[jdbc-v2]** Fixed issues with hardcoded `async_insert` settings in `ConnectionImpl`. Now it let override them. (https://github.com/ClickHouse/clickhouse-java... | 12 | 7 | 1 | [{"id": "G0", "claim": "The DataProvider comment names the second parameter `waitEndOfQuery` while the test actually varies `wait_for_async_insert`; update the comment or parameter name to match the setting being tested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
ClickHouse__clickhouse-java__2852 | ClickHouse/clickhouse-java | 2,852 | defect | e9a4219e5d1ec6fe83b8f9825d15a5140f0b5c10 | ac0c79a815cc211f9cc26513bcf930f05406ecde | [repo] Fix slow init/teardown in cloud tests | ## Summary
Each test suite tries to create a database. Database name is shared among all tests suites in the project. When run on the cloud it significantly slows down test execution.
This PR adds two flags to avoid extra queries.
Server output when creating database:
```
Code: 159. DB::Exception: Distrib... | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index adfdd54fb..363bf1cb2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -256,11 +256,28 @@ jobs:
EOF
- name: Install Java client
run: mvn --also-make --batch-mode --no-transfer-progress -Ds... | 4 | 4 | 2 | [{"id": "G0", "claim": "JWT_TEST_HOST is read from the environment and passed to addEndpoint without validation, so if it is missing or empty the cloud JWT test fails with a less-informative NPE/connection error; add an explicit assertion (like the JWT one) or default to CLICKHOUSE_CLOUD_HOST when unset.", "category": ... | null |
ClickHouse__clickhouse-kafka-connect__413 | ClickHouse/clickhouse-kafka-connect | 413 | defect | 3a5b8d3c47b1d279b317d0bcf95eb85bd51708dc | fe558d762450b81ffc8f5956f1ce9dfb8aa71b22 | Adding additional String parsing for DateTime64 | So Date is precise to milliseconds, where folks sometimes want nanoseconds. To help address this, I've adjusted the String parsing to allow for custom patterns and then transmitting that based on the DateTime64 precision. | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3574e2451..8e39351f9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+## 1.1.2
+* Adding a "dateTimeFormat" configuration option to allow for custom date/time formatting with String schema values
+
## 1.1.1
* Bugfix to address string encoding issue
* Bugfix... | 5 | 4 | 0 | [{"id": "G0", "claim": "Provide an example of the dateTimeFormat value in the configuration option's documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DateTimeFormatter should be initialised only once instead of per record, and the... | null |
ClickHouse__clickhouse-kafka-connect__424 | ClickHouse/clickhouse-kafka-connect | 424 | defect | 53c4fec54ac96bb15d24b425b7353c0a395fef39 | 737ed396467ead641d1e688caf557cf94bb21a5e | Add support in Client V1 & V2 | ## Summary
Add support in Client V1 & V2
## Checklist
Delete items not relevant to your PR:
- [ ] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For significant changes, documentation in https://git... | diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 863d3288b..282a884a3 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -8,8 +8,9 @@ jobs:
strategy:
fail-fast: false
matrix:
+ client: ["V1", "V2"]
clickhouse: ["23.7", "24.3",... | 2 | 1 | 0 | [{"id": "G0", "claim": "The client_version config option should use a validator to limit its values to V1 or V2 instead of accepting any string.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The System.out.println debug statement in showTablesV2 sh... | null |
ClickHouse__clickhouse-kafka-connect__430 | ClickHouse/clickhouse-kafka-connect | 430 | defect | 7ca9b3f9afefcbfbc6a5b86b8058edb6f746000f | 5d88bc111e637b5b8ee9353417ba9b0d5f2403f2 | Add some initial code to take the key and store it in the value | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
## Checklist
Delete items not relevant to your PR:
- [ ] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For signi... | diff --git a/build.gradle.kts b/build.gradle.kts
index 5c749ef6e..fed240333 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -106,6 +106,7 @@ dependencies {
clickhouseDependencies("org.apache.httpcomponents.client5:httpclient5:5.3.1")
clickhouseDependencies("io.lettuce:lettuce-core:6.3.2.RELEASE")
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Check the record value's type (e.g. String, byte[]) before casting it to Map, since only the JSON deserializer produces a Map for schemaless records.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
ClickHouse__clickhouse-kafka-connect__445 | ClickHouse/clickhouse-kafka-connect | 445 | defect | 5191584fe134ad0c74709d1546befeacb1c6879b | e65d37a61a21a6f3aad616431819bd699b947794 | Adding new state and logic around it | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
## Checklist
Delete items not relevant to your PR:
- [ ] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For signi... | diff --git a/src/main/java/com/clickhouse/kafka/connect/sink/kafka/RangeContainer.java b/src/main/java/com/clickhouse/kafka/connect/sink/kafka/RangeContainer.java
index 3259d67d6..5e829ca15 100644
--- a/src/main/java/com/clickhouse/kafka/connect/sink/kafka/RangeContainer.java
+++ b/src/main/java/com/clickhouse/kafka/co... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new PREVIOUS branch in RangeContainer.getOverLappingState should carry an example comment with correct values, like the neighbouring ZEROED/ERROR comments.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of only ... | null |
ClickHouse__clickhouse-kafka-connect__497 | ClickHouse/clickhouse-kafka-connect | 497 | defect | 0e49af7d1c051bfe544f8fc3729c4db3d79a860b | 94c271966286e5bd98b7022851e1cde82b08737f | Fix NPE on V1 when table has array(nested) field | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For signi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2db4b0dd1..ae6c1c5a1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# 1.2.7
* Bump clickhouse-java to 0.8.0
* Fix for handling of nullable fields in tuples ClickHouse data type
+* Fix NPE on V1 client when Clickhouse has table with Array(Nested...) field
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Bump the CHANGELOG entry for the fix to version 1.2.8 instead of leaving it under 1.2.7.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test that actually inserts data for an Array with Nested field.", "category": "te... | null |
ClickHouse__clickhouse-kafka-connect__512 | ClickHouse/clickhouse-kafka-connect | 512 | defect | 0f0f35659023e69c10251e143ef7ec2fc4f1009f | 6dc87950164e07c722ba8a4e6ef78ab44b401918 | Adjusting batching to only use topic | ## Summary
* Added a flag to ignore partition when grouping records (only when exactlyOnce=false)
## Checklist
Delete items not relevant to your PR:
- [ ] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- ... | diff --git a/src/main/java/com/clickhouse/kafka/connect/sink/ClickHouseSinkConfig.java b/src/main/java/com/clickhouse/kafka/connect/sink/ClickHouseSinkConfig.java
index 063840d61..fd09e091f 100644
--- a/src/main/java/com/clickhouse/kafka/connect/sink/ClickHouseSinkConfig.java
+++ b/src/main/java/com/clickhouse/kafka/co... | 2 | 2 | 1 | [{"id": "G0", "claim": "Instead of duplicating the conversion-and-grouping code across the two branches, extract it into a helper method such as groupByTopicOrTopicAndPartition() that takes isExactlyOnce() && isIgnorePartitionsWhenBatching() as values.", "category": "maintainability", "verdict": "supported", "priority"... | null |
ClickHouse__clickhouse-kafka-connect__529 | ClickHouse/clickhouse-kafka-connect | 529 | defect | 862ff981f10db28aa2073f40c7768062110b58ca | b59fceea5738caab2fa1d03d4f5db3536b65659d | Adjust JSON to escape backslash | ## Summary
* Adjusts the JSON parsing to replace `\` with `\\`
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For significant changes, docume... | diff --git a/src/main/java/com/clickhouse/kafka/connect/sink/db/helper/ClickHouseFieldDescriptor.java b/src/main/java/com/clickhouse/kafka/connect/sink/db/helper/ClickHouseFieldDescriptor.java
index c17c75fc3..2c77f664b 100644
--- a/src/main/java/com/clickhouse/kafka/connect/sink/db/helper/ClickHouseFieldDescriptor.jav... | 2 | 1 | 1 | [{"id": "G0", "claim": "Replacing newlines before backslashes may cause the newline escapes produced by the first replace to be over-escaped; consider switching the order if that is not the intended behavior.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cl... | null |
ClickHouse__clickhouse-kafka-connect__554 | ClickHouse/clickhouse-kafka-connect | 554 | defect | 69e5f3dc913e2670e55f3311efe1b87a62caf46b | 542057a9f3cab4eb8d4ae6ddc1d5f9a632cf2187 | Implemented writing JSON as string and converting struct to json | ## Summary
- Adds JSON as a valid type
- Updates schema validation to react on `input_format_binary_read_json_as_string`
- Updates write to encode JSON as string in case of binary format or write as a string if it is already one
Closes: https://github.com/ClickHouse/clickhouse-kafka-connect/issues/543
## C... | diff --git a/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java b/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java
index 329d9256c..a1395d9d8 100644
--- a/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java
+++ b/src/main/java/com/clickhouse/kafka/conne... | 7 | 5 | 0 | [{"id": "G0", "claim": "The call to value.getObject() is redundant since the next line already invokes getObject(); remove it to avoid unnecessary duplication.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variable value in doInsertJs... | null |
ClickHouse__clickhouse-kafka-connect__559 | ClickHouse/clickhouse-kafka-connect | 559 | defect | 94bc2f896e5715a09a154b86a3351b99b96be6a8 | 6dcc90dfdf19edafbb19e3506129efdd9f7e1820 | Test exacly once mismatch | ## Summary
## Checklist
Delete items not relevant to your PR:
- [X] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For significant changes, documentation in https://github.com/ClickHouse/clickhouse-d... | diff --git a/src/main/java/com/clickhouse/kafka/connect/sink/kafka/RangeContainer.java b/src/main/java/com/clickhouse/kafka/connect/sink/kafka/RangeContainer.java
index 03c39b38d..ee495496d 100644
--- a/src/main/java/com/clickhouse/kafka/connect/sink/kafka/RangeContainer.java
+++ b/src/main/java/com/clickhouse/kafka/co... | 6 | 2 | 1 | [{"id": "G0", "claim": "The Javadoc of getOverLappingState should be updated to document the newly added 'state' parameter so callers understand its role.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test file should avoid wildcard imports (... | null |
ClickHouse__clickhouse-kafka-connect__571 | ClickHouse/clickhouse-kafka-connect | 571 | defect | 93d4e64ed42109b6a6bbca598bdfecfa35fa674c | 20bf996e30e9ecc25692f32bf88e774efdeb98b9 | add SimpleAggregateFunction column type support | ## Summary
<!-- A short description of the changes with a link to an open issue. -->
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For signi... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2d088e700..7eab97553 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+# 1.3.3
+* Added support of SimpleAggregateFunction column type
+
# 1.3.2
Added support of writing JSON as string to a JSON column.
Upgraded dependency `org.slf4j:slf4j-reload4j` from `2... | 1 | 1 | 0 | [{"id": "G0", "claim": "The SimpleAggregateFunction regex Pattern compiled inside extractColumn should be made final or extracted to a constant instead of being recompiled on every call.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
ClickHouse__clickhouse-kafka-connect__589 | ClickHouse/clickhouse-kafka-connect | 589 | defect | 469e4774a8b1c156cd0fddb1ec8998c83450311c | 282cd0510ea7851a179416b173a8b91e878b38f8 | Fix avro union for primitive types | ## Summary
- Adds test avro message
- Fixes parsing struct for primitive unions
Closes: https://github.com/ClickHouse/clickhouse-kafka-connect/issues/572
## Checklist
Delete items not relevant to your PR:
- [ ] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable descr... | diff --git a/build.gradle.kts b/build.gradle.kts
index 7df6ab0f0..846e734ce 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -142,6 +142,8 @@ dependencies {
testFixturesApi("com.google.protobuf:protobuf-java:${project.extra["libprotobuf"]}")
testFixturesApi("io.confluent:kafka-protobuf-serializer:${pro... | 2 | 2 | 0 | [{"id": "G0", "claim": "The debug print statement System.out.println(records) in testAvroWithUnion should be removed or replaced with proper logging, since System.out.println is not appropriate for production code or unit tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd... | null |
ClickHouse__clickhouse-kafka-connect__592 | ClickHouse/clickhouse-kafka-connect | 592 | defect | c5f8e8fbc95c3d02570de5a7d8cef22c34b9fad0 | 5e60d4c6110463e859430b5ec850edb0992acb98 | [Client] Fixes client name in query_log | ## Summary
- Adds generating a java file with artifact version
- Fixes problem with incorrect client version in query_log
- Adds test for both client versions
Closes https://github.com/ClickHouse/clickhouse-kafka-connect/issues/542
## Checklist
Delete items not relevant to your PR:
- [ ] Unit and integr... | diff --git a/build.gradle.kts b/build.gradle.kts
index 363992b60..926204a8e 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -284,6 +284,39 @@ tasks.register<Zip>("createConfluentArchive") {
destinationDirectory.set(file("$buildDir/confluent"))
}
+var generateVersionFile = tasks.register<DefaultTask>("ge... | 4 | 2 | 2 | [{"id": "G0", "claim": "Using CLIENT_NAME instead of PRODUCT_NAME may change expected behavior for existing users, so the pull request should document the possible breaking change or also set PRODUCT_NAME for backward compatibility.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"},... | null |
ClickHouse__clickhouse-kafka-connect__613 | ClickHouse/clickhouse-kafka-connect | 613 | defect | ac63e999b75bdda47428356938d00e9175e96c7c | f67b7ec4b3614fec0d44fbc511a9124e22326e09 | Fixed avro timestamp types | ## Summary
Closes: https://github.com/ClickHouse/clickhouse-kafka-connect/issues/599
## Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [ ] A human-readable description of the changes was provided to include in CHANGELOG
- [ ] For sig... | diff --git a/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java b/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java
index 43f2483de..f182ff238 100644
--- a/src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java
+++ b/src/main/java/com/clickhouse/kafka/conne... | 6 | 5 | 1 | [{"id": "G0", "claim": "The README's generation command writes 'even.avro' instead of 'event.avro', which should match the input filename.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comments for time1 and time2 in event.idl are swapped and... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.