Skip to content

Commit

Permalink
chore: throw on invalid ID type
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 committed Feb 28, 2024
1 parent d382438 commit eb7fe9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/qdrant/spark/QdrantDataWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ public void write(InternalRow record) {
case "long":
pointBuilder.setId(id(record.getInt(fieldIndex)));
break;

default:
break;
throw new IllegalArgumentException("Point ID should be of type string or integer");
}

} else if (field.name().equals(this.options.embeddingField)) {
Expand Down

0 comments on commit eb7fe9b

Please sign in to comment.