[ 
https://issues.apache.org/jira/browse/CAMEL-26214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino reassigned CAMEL-26214:
----------------------------------------

    Assignee: Andrea Cosentino

> camel-weaviate - a vector as a List of Double (as JSON gives) fails with 
> ArrayStoreException
> --------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26214
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26214
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-weaviate
>            Reporter: Claus Ibsen
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> Found while adding the catalog body types of weaviate, pinecone and pgvector 
> (CAMEL-24961, PR #28402).
> h4. 1. A List of Double vector fails with ArrayStoreException
> A vector given as a List of Double (what a JSON array unmarshals to) fails 
> with a raw {{ArrayStoreException}}: {{WeaviateVectorDbProducer}} (main 
> 2a465aa4814c, lines 132, 154 and 200) does {{(Float[]) elements.toArray(new 
> Float[0])}} for CREATE, UPDATE_BY_ID and QUERY. Checked on 4.24.0-SNAPSHOT 
> with the camel-test-infra weaviate container. camel-pinecone and 
> camel-pgvector have the same problem.
> Proposed: convert each element with {{Number.floatValue()}}.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to