Skip to content

feat!: Upgrade go-elasticsearch SDK to v9, supporting Elasticsearch v9+#22324

Merged
kodiakhq[bot] merged 3 commits intomainfrom
feature/eng-2765-featdest-elasticsearch-update-to-latest-go-sdk
Mar 20, 2026
Merged

feat!: Upgrade go-elasticsearch SDK to v9, supporting Elasticsearch v9+#22324
kodiakhq[bot] merged 3 commits intomainfrom
feature/eng-2765-featdest-elasticsearch-update-to-latest-go-sdk

Conversation

@murarustefaan
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-elasticsearch dependency from v8 to v9 and update Go imports to the new major version paths.
  • Bump the plugin’s Go module path from /v3 to /v4 and update internal imports/schema IDs/coverage references accordingly.
  • Update documentation links and the local docker-compose.yaml image to Elasticsearch 9.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.

@murarustefaan murarustefaan added the automerge Automatically merge once required checks pass label Mar 20, 2026
@kodiakhq kodiakhq bot merged commit 1415a35 into main Mar 20, 2026
9 checks passed
@kodiakhq kodiakhq bot deleted the feature/eng-2765-featdest-elasticsearch-update-to-latest-go-sdk branch March 20, 2026 11:11
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/destination/elasticsearch automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants