Repository navigation
Add create index to java sdk client - #14
Merged
Merged
Conversation
rajat08
approved these changes
Aug 21, 2023
jhamon
added a commit
that referenced
this pull request
Nov 12, 2026
23 tests in src/integration make no network call, because the client validates the input first, so they ran only in the keyed live job. - QueryErrorTest (6) and UpsertErrorTest (8) move to src/test as-is (git mv, package io.pinecone.clients). - The 8 identical pod/serverless sparse-validation tests in the UpsertAndQuery*/UpdateFetchAndQuery* classes become 4 unit tests on mocked stubs (2 in UpsertErrorTest, 2 in a new UpdateErrorTest), since the check does not depend on index type. - createServerlessIndexWithInvalidDimension moves to PineconeIndexOperationsTest and verifies that no request is sent. - RandomStringBuilder and BuildUpsertRequest move to src/test/helpers. Two "Future" tests (UpsertErrorTest ...FutureTest and QueryErrorTest.queryWithVectorAndIdFutureTest) called the sync client. They now call asyncIndex, so the async validation path is covered. Verified: offline build green in 15 s; unit tests 101 -> 120; integration @test methods 109 -> 86.
jhamon
added a commit
that referenced
this pull request
Nov 12, 2026
…ies (#44) * fix(deps): clear open Dependabot alerts (jackson 2.21.7, netty 4.1.137, guava 33.7.2) Clears the 11 open Dependabot alerts without a breaking change. Existing POM dependencies change only in version; Guava, which every consumer already gets through grpc, is now declared directly. - jackson-databind and jackson-core 2.21.5 -> 2.21.7 (alerts #15-#21). Supersedes Dependabot PR #6. - Netty 4.1.136.Final -> 4.1.137.Final through the existing nettyVersion pin (alerts #12-#14). Stays on 4.1.x for grpc-netty 1.60.2. - Guava 32.0.1-android -> 33.7.2-android (alert #22). Guava comes from grpc, and no grpc release ships a patched Guava. A direct implementation dependency makes Maven consumers resolve 33.7.2 (nearest wins, widened to compile scope by grpc-api). A matching api constraint moves Gradle consumers' compile classpath too, which would otherwise still see 32.0.1 through grpc. * no-mistakes(review): Declare Guava 33.7.2 as a single api dependency * no-mistakes(document): Add CHANGELOG entry for security dependency bumps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The java sdk client is currently missing index creation code.
Solution
This PR adds index creation code and the PR contains client wrapper to make a http call to create Index endpoint along with a unit test.
Type of Change
Test Plan
Unit test is added as a part of this PR and as a part of integration test, ran it manually by creating an index using the createIndex() against my account and checked that the index was created using console.