Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to combine uuids with strings in DataObject arrays #999

Open
trengrj opened this issue Apr 8, 2024 · 0 comments
Open

Unable to combine uuids with strings in DataObject arrays #999

trengrj opened this issue Apr 8, 2024 · 0 comments

Comments

@trengrj
Copy link
Member

trengrj commented Apr 8, 2024

I expect a string "06bd10e6-e8c2-4277-b534-54583348669e" in a text[] will index ok but get the following error:

import weaviate
import weaviate.classes as wc
from weaviate.collections.classes.data import DataObject

client = weaviate.connect_to_local(
    port=8080,
    grpc_port=50051,
)

client.collections.delete(name="Test")
collection = client.collections.create(name="Test")


collection.data.insert_many([
    DataObject(properties={"name": ["test", "06bd10e6-e8c2-4277-b534-54583348669e"]}),
])

Produces error

WeaviateInsertManyAllFailedError: Every object failed during insertion.
Here is the set of all errors: property 'name' on class 'Test': element [1]: mismatched data type - 'text' expected, got 'uuid'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant