Jiri Ondrusek created CAMEL-22142:
-------------------------------------

             Summary: Camel-weaviate query by vector does not  work correctly
                 Key: CAMEL-22142
                 URL: https://issues.apache.org/jira/browse/CAMEL-22142
             Project: Camel
          Issue Type: Bug
          Components: camel-ai
    Affects Versions: 4.12.0
            Reporter: Jiri Ondrusek
            Assignee: Jiri Ondrusek
             Fix For: 4.13.0


During query by vector (part of the test coverage  in the camel-weaviate) there 
is an exception (from 
[line|https://github.com/apache/camel/blob/main/components/camel-ai/camel-weaviate/src/main/java/org/apache/camel/component/weaviate/WeaviateVectorDbProducer.java#L256])
{code}
java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class 
[Lio.weaviate.client.v1.graphql.query.fields.Field; ([Ljava.lang.Object; is in 
module java.base of loader 'bootstrap'; 
[Lio.weaviate.client.v1.graphql.query.fields.Field; is in unnamed module of 
loader 'app')
{code}

Also the content of WeaviateContainerIT and WeaviateComponentIT is almost 
identical , therefore prone to errors. There should be only one copy of the 
code.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to