Skip to content

Commit 0995515

Browse files
Anush008tzolov
authored andcommitted
Minor code and doc adjustments
- chore: renamed test file - fix: BOOL_VALUE ObjectFactory
1 parent 31d6194 commit 0995515

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* @author Christian Tzolov
2525
*/
26-
public class PgVectorStorePropertiesTests {
26+
public class QdrantVectorStorePropertiesTests {
2727

2828
@Test
2929
public void defaultValues() {

vector-stores/spring-ai-qdrant/src/main/java/org/springframework/ai/vectorstore/qdrant/QdrantObjectFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ private static Object object(Value value) {
5858
case DOUBLE_VALUE:
5959
return value.getDoubleValue();
6060
case BOOL_VALUE:
61-
return value.hasBoolValue();
61+
return value.getBoolValue();
6262
case LIST_VALUE:
6363
return object(value.getListValue());
6464
case STRUCT_VALUE:
6565
return toObjectMap(value.getStructValue().getFieldsMap());
66-
case KIND_NOT_SET:
6766
case NULL_VALUE:
67+
return null;
68+
case KIND_NOT_SET:
6869
default:
6970
logger.warn("Unsupported value type: " + value.getKindCase());
7071
return null;

0 commit comments

Comments
 (0)