Skip to content

Commit 1f256b5

Browse files
authored
Merge pull request #1986 from weaviate/add-support-for-blob-hash-property
feat: add support for blobHash property type
2 parents b9a7c69 + dff05f5 commit 1f256b5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

test/collection/test_config.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,10 @@ def test_config_create_with_properties(
13401340
name="blob",
13411341
data_type=DataType.BLOB,
13421342
),
1343+
Property(
1344+
name="blob_hash",
1345+
data_type=DataType.BLOB_HASH,
1346+
),
13431347
Property(
13441348
name="phone_number",
13451349
data_type=DataType.PHONE_NUMBER,
@@ -1403,6 +1407,10 @@ def test_config_create_with_properties(
14031407
"dataType": ["blob"],
14041408
"name": "blob",
14051409
},
1410+
{
1411+
"dataType": ["blobHash"],
1412+
"name": "blob_hash",
1413+
},
14061414
{
14071415
"dataType": ["phoneNumber"],
14081416
"name": "phone_number",

weaviate/collections/classes/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ class DataType(str, BaseEnum):
148148
UUID_ARRAY: UUID array data type.
149149
GEO_COORDINATES: Geo coordinates data type.
150150
BLOB: Blob data type.
151+
BLOB_HASH: Blob hash data type.
151152
PHONE_NUMBER: Phone number data type.
152153
OBJECT: Object data type.
153154
OBJECT_ARRAY: Object array data type.
@@ -167,6 +168,7 @@ class DataType(str, BaseEnum):
167168
UUID_ARRAY = "uuid[]"
168169
GEO_COORDINATES = "geoCoordinates"
169170
BLOB = "blob"
171+
BLOB_HASH = "blobHash"
170172
PHONE_NUMBER = "phoneNumber"
171173
OBJECT = "object"
172174
OBJECT_ARRAY = "object[]"

0 commit comments

Comments
 (0)