fix: upgrade to elasticsearch-py 7.17.13 and opensearch-py 2.x for urllib3 2.x compatibility - #118
Merged
dpgaspar merged 1 commit intoFeb 6, 2026
Conversation
dpgaspar
force-pushed
the
danielgaspar/sc-97626/unable-to-connect-to-elasticsearch2
branch
2 times, most recently
from
February 5, 2026 12:36
179aa72 to
cfac610
Compare
dpgaspar
force-pushed
the
danielgaspar/sc-97626/unable-to-connect-to-elasticsearch2
branch
2 times, most recently
from
February 5, 2026 12:41
00c1b37 to
6120362
Compare
vitor-mechanic
approved these changes
Feb 5, 2026
dpgaspar
force-pushed
the
danielgaspar/sc-97626/unable-to-connect-to-elasticsearch2
branch
3 times, most recently
from
February 6, 2026 10:22
2012aa1 to
c2799af
Compare
…llib3 2.x compatibility Upgrades elasticsearch-dbapi to support modern Python environments (3.10+) by using elasticsearch-py 7.17.13 (urllib3 2.x compatible) and adding opensearch-py 2.x as a direct dependency. Supports ES 7.x natively, ES 8.x via compatibility mode, and OpenSearch 2.x simultaneously. Updates SQLAlchemy integration to 2.x API. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
dpgaspar
force-pushed
the
danielgaspar/sc-97626/unable-to-connect-to-elasticsearch2
branch
from
February 6, 2026 12:26
c2799af to
22cb494
Compare
dpgaspar
deleted the
danielgaspar/sc-97626/unable-to-connect-to-elasticsearch2
branch
February 6, 2026 12:35
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.
Summary
elasticsearch-pyto>=7.17.13, <8which supports urllib3 2.x on Python 3.10+, resolving connection failures on modern Python environmentsopensearch-py>=2.4.0, <3as a direct dependency for OpenSearch supportELASTIC_CLIENT_APIVERSIONING=1), and OpenSearch 2.xURL.create,text(),import_dbapi(),ReflectedColumn, etc.)Changes
Dependencies (
setup.py,requirements-dev.txt)elasticsearch>=7.17.13, <8(was>=7.x, <7.14)opensearch-py>=2.4.0, <3(new direct dependency)Core (
es/baseapi.py,es/elastic/api.py,es/opendistro/api.py)elasticsearchandopensearchpyexceptionsContent-Typeheader: ES 7.x client needs explicit header, OpenSearch client sets it automaticallysql_path,fetch_size,time_zone,v2) from client kwargsself.esin Connection subclassesSQLAlchemy (
es/basesqlalchemy.py,es/elastic/sqlalchemy.py,es/opendistro/sqlalchemy.py)import_dbapi()classmethod on all dialect classes (SA 2.x requirement)supports_statement_cache = Falseget_type()returnsTypeEngineinstances (not classes)get_columns()returnsList[ReflectedColumn]Tests & CI
URL.create(),text(),inspect(),autoload_with=Test plan
🤖 Generated with Claude Code