feat!: Upgrade go-elasticsearch SDK to v9, supporting Elasticsearch v9+#22324
Merged
kodiakhq[bot] merged 3 commits intomainfrom Mar 20, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Upgrades the Elasticsearch destination plugin to use go-elasticsearch v9 and aligns the plugin module’s major version/import paths accordingly, updating local dev/test/docs artifacts to target Elasticsearch 9.x.
Changes:
- Bump
github.com/elastic/go-elasticsearchdependency fromv8tov9and update Go imports to the new major version paths. - Bump the plugin’s Go module path from
/v3to/v4and update internal imports/schema IDs/coverage references accordingly. - Update documentation links and the local
docker-compose.yamlimage to Elasticsearch9.0.0.
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| plugins/destination/elasticsearch/main.go | Update internal imports to module /v4. |
| plugins/destination/elasticsearch/go.mod | Bump module path to /v4 and depend on go-elasticsearch/v9. |
| plugins/destination/elasticsearch/go.sum | Update checksums for go-elasticsearch/v9 (remove v8). |
| plugins/destination/elasticsearch/docs/types.md | Update Elasticsearch docs link to 9.0 mapping types. |
| plugins/destination/elasticsearch/docs/overview.md | Update Kibana docs link and stated tested ES version to 9.0+. |
| plugins/destination/elasticsearch/docs/_licenses.md | Refresh dependency/license list to reflect updated transitive deps. |
| plugins/destination/elasticsearch/docker-compose.yaml | Update local Elasticsearch image to docker.elastic.co/...:9.0.0. |
| plugins/destination/elasticsearch/coverage.md | Update coverage paths to module /v4. |
| plugins/destination/elasticsearch/client/spec/gen/main.go | Update generator imports and WithAddGoComments module path to /v4. |
| plugins/destination/elasticsearch/client/schema.json | Update $id to module /v4 path. |
| plugins/destination/elasticsearch/client/read.go | Switch typed API imports from v8 to v9. |
| plugins/destination/elasticsearch/client/migrate.go | Switch typed API imports from v8 to v9. |
| plugins/destination/elasticsearch/client/delete_stale.go | Switch typed API imports from v8 to v9. |
| plugins/destination/elasticsearch/client/client_new_test.go | Update mocked cluster info fields to 9.0.0-era values. |
| plugins/destination/elasticsearch/client/client.go | Switch client imports from v8 to v9 (typed + untyped clients). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
erezrokah
approved these changes
Mar 20, 2026
…te-to-latest-go-sdk
kodiakhq bot
pushed a commit
that referenced
this pull request
Mar 27, 2026
🤖 I have created a release *beep* *boop* --- ## [4.0.0](plugins-destination-elasticsearch-v3.6.4...plugins-destination-elasticsearch-v4.0.0) (2026-03-27) ### ⚠ BREAKING CHANGES * Upgrade go-elasticsearch SDK to v9, supporting Elasticsearch v9+ ([#22324](#22324)) ### Features * Upgrade go-elasticsearch SDK to v9, supporting Elasticsearch v9+ ([#22324](#22324)) ([1415a35](1415a35)) ### Bug Fixes * **deps:** Update module github.com/buger/jsonparser to v1.1.2 [SECURITY] ([#22325](#22325)) ([816b4a0](816b4a0)) * **deps:** Update module github.com/cloudquery/codegen to v0.4.0 ([#22347](#22347)) ([782290d](782290d)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.94.6 ([#22318](#22318)) ([ddde2f0](ddde2f0)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.94.7 ([#22338](#22338)) ([5d71062](5d71062)) * **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.95.0 ([#22354](#22354)) ([35ed376](35ed376)) * **deps:** Update module google.golang.org/grpc to v1.79.3 [SECURITY] ([#22255](#22255)) ([cd44a9c](cd44a9c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.
No description provided.