chore: upgrade camel-weaviate from Weaviate Java client v5 to v6#21616
chore: upgrade camel-weaviate from Weaviate Java client v5 to v6#21616orpiske wants to merge 1 commit intoapache:mainfrom
Conversation
Migrate the camel-weaviate component to use the Weaviate Java client v6 (io.weaviate:client6:6.0.1) which introduces a collection-centric API replacing the v5 schema/data/graphQL pattern. Key changes: - Dependency: io.weaviate:client -> io.weaviate:client6 (uber JAR) - Client creation: WeaviateClient.connectToCustom() replaces Config/WeaviateAuthClient - Data operations: CollectionHandle-based API replaces builder chains - Queries: nearVector() replaces GraphQL raw query builder - Responses: Direct objects replace Result<T> wrappers - Configuration: Added grpcHost/grpcPort for gRPC support - Test container: Bumped to Weaviate 1.33.0 (v6 client minimum) - Test infra: Added gRPC port support
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
|
Please, do no accept that. |
|
I marked this one as a draft. My intention here was just to show case to a colleague the Weaviate conversion from v5 to v6 using Claude Code. However, since I'm currently busy with another activity, I don't have the time to review it and test it carefully. So, I'll keep it open briefly for reference ... but I'll be closing this one soon. Apologies for the confusion. |
|
Closing this as @JiriOndrusek found out that, although the conversion is OK, the Weaviate client v6 is lacking a lot of functionality. |
Summary
Migrate the camel-weaviate component to use the Weaviate Java client v6 (
io.weaviate:client6:6.0.1), replacing the deprecated v5 client (io.weaviate:client:5.5.0).Changes
io.weaviate:client5.5.0 ->io.weaviate:client66.0.1 (uber JAR to avoid protobuf version conflicts)Config/WeaviateAuthClientpattern withWeaviateClient.connectToCustom()builderclient.data().creator()/updater()/deleter()chains withCollectionHandle.data.insert()/update()/deleteMany()APICollectionHandle.query.nearVector()/fetchObjectById()Result<T>wrappers (breaking change for consumers)grpcHostandgrpcPortparameters for gRPC support (required by v6 client)WeaviateInfraServiceand implementationsBreaking changes
Result<T>wrappers)--add-opens=java.base/java.lang=ALL-UNNAMEDrequired at runtimeTest plan