Skip to content

Commit d1fbe2b

Browse files
authored
Merge pull request #407 from askmyhat/main
Use getResultRows to check KeeperMap entry existance
2 parents 532e750 + b3345b3 commit d1fbe2b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Bugfix to address string encoding issue
33
* Bugfix to address issue with nested types and flatten_nested setting conflict
44
* Bugfix to avoid storing keeper state in same column name if virtual topic is enabled
5+
* Updated java-client to 0.6.1
6+
* Bugfix to let create missing KeeperMap entries if there are some records present already
57
* Added a flag to allow bypassing RowBinary and RowBinaryWithDefaults format for schema insertions
68
* Bugfix to remove erroneous error messages about complex type handling
79

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ repositories {
5151

5252
extra.apply {
5353

54-
set("clickHouseDriverVersion", "0.6.0-patch4")
54+
set("clickHouseDriverVersion", "0.6.1")
5555
set("kafkaVersion", "2.7.0")
5656
set("avroVersion", "1.9.2")
5757

src/main/java/com/clickhouse/kafka/connect/sink/state/provider/KeeperStateProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public StateRecord getStateRecord(String topic, int partition) {
8585
.query(selectStr)
8686
.executeAndWait()) {
8787
LOGGER.debug("return size: {}", response.getSummary().getReadRows());
88-
if ( response.getSummary().getReadRows() == 0) {
88+
if ( response.getSummary().getResultRows() == 0) {
8989
LOGGER.info(String.format("read state record: topic %s partition %s with NONE state", topic, partition));
9090
return new StateRecord(topic, partition, 0, 0, State.NONE);
9191
}

0 commit comments

Comments
 (0)