Minor code and doc adjustments

- chore: renamed test file
 - fix: BOOL_VALUE ObjectFactory
This commit is contained in:
Anush008
2024-03-01 15:01:53 +05:30
committed by Christian Tzolov
parent 31d6194d9d
commit 0995515f2f
2 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat;
/**
* @author Christian Tzolov
*/
public class PgVectorStorePropertiesTests {
public class QdrantVectorStorePropertiesTests {
@Test
public void defaultValues() {

View File

@@ -58,13 +58,14 @@ class QdrantObjectFactory {
case DOUBLE_VALUE:
return value.getDoubleValue();
case BOOL_VALUE:
return value.hasBoolValue();
return value.getBoolValue();
case LIST_VALUE:
return object(value.getListValue());
case STRUCT_VALUE:
return toObjectMap(value.getStructValue().getFieldsMap());
case KIND_NOT_SET:
case NULL_VALUE:
return null;
case KIND_NOT_SET:
default:
logger.warn("Unsupported value type: " + value.getKindCase());
return null;