Skip to content

Commit

Permalink
Merge pull request #407 from askmyhat/main
Browse files Browse the repository at this point in the history
Use getResultRows to check KeeperMap entry existance
  • Loading branch information
Paultagoras authored Jun 27, 2024
2 parents 532e750 + b3345b3 commit d1fbe2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Bugfix to address string encoding issue
* Bugfix to address issue with nested types and flatten_nested setting conflict
* Bugfix to avoid storing keeper state in same column name if virtual topic is enabled
* Updated java-client to 0.6.1
* Bugfix to let create missing KeeperMap entries if there are some records present already
* Added a flag to allow bypassing RowBinary and RowBinaryWithDefaults format for schema insertions
* Bugfix to remove erroneous error messages about complex type handling

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ repositories {

extra.apply {

set("clickHouseDriverVersion", "0.6.0-patch4")
set("clickHouseDriverVersion", "0.6.1")
set("kafkaVersion", "2.7.0")
set("avroVersion", "1.9.2")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public StateRecord getStateRecord(String topic, int partition) {
.query(selectStr)
.executeAndWait()) {
LOGGER.debug("return size: {}", response.getSummary().getReadRows());
if ( response.getSummary().getReadRows() == 0) {
if ( response.getSummary().getResultRows() == 0) {
LOGGER.info(String.format("read state record: topic %s partition %s with NONE state", topic, partition));
return new StateRecord(topic, partition, 0, 0, State.NONE);
}
Expand Down

0 comments on commit d1fbe2b

Please sign in to comment.