Skip to content

Commit

Permalink
refactor:Allow vectors to be null (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 authored Sep 17, 2024
1 parent 66450ce commit a780369
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {
}

group = 'io.qdrant'
version = '1.1.1'
version = '1.1.2'
description = 'Kafka Sink Connector for Qdrant.'
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/qdrant/kafka/ValueExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Map<String, Value> getPayload() {
public Vectors getVector() {
Value vectorValue = this.valueMap.get(VECTOR_KEY);

if (vectorValue == null) {
if (vectorValue == null || vectorValue.hasNullValue()) {
return Vectors.newBuilder().setVectors(NamedVectors.getDefaultInstance()).build();
}

Expand Down

0 comments on commit a780369

Please sign in to comment.