Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sql query with elasticsearch version 6.x #158

Merged
merged 4 commits into from
Feb 21, 2025
Merged

fix: sql query with elasticsearch version 6.x #158

merged 4 commits into from
Feb 21, 2025

Conversation

luohoufu
Copy link
Contributor

What does this PR do

This pull request includes changes to the HandleProxyAction function in the modules/elastic/api/proxy.go file to handle different Elasticsearch distributions and versions more effectively. The most important changes include adding version handling for Elasticsearch and ensuring the correct path is used based on the version.

Enhancements to Elasticsearch version handling:

  • modules/elastic/api/proxy.go: Added retrieval of the Elasticsearch version number and adjusted the request path based on the version, ensuring compatibility with versions before and after 7.0.0. [1] [2]

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@luohoufu luohoufu changed the title fix: sql query with version 6.x fix: sql query with elasticsearch version 6.x Feb 21, 2025
@silenceqi silenceqi merged commit ca52a5b into main Feb 21, 2025
5 checks passed
@silenceqi silenceqi deleted the fix_sql_pr branch February 21, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants