Skip to content

Elasticsearch : Ignore cursor specific parameters when instantiating the connection#48865

Merged
jason810496 merged 9 commits into
apache:mainfrom
dabla:fix/elasticsearch-sql-cursor-constructor
Apr 15, 2025
Merged

Elasticsearch : Ignore cursor specific parameters when instantiating the connection#48865
jason810496 merged 9 commits into
apache:mainfrom
dabla:fix/elasticsearch-sql-cursor-constructor

Conversation

@dabla

@dabla dabla commented Apr 7, 2025

Copy link
Copy Markdown
Contributor

Due to the implementation of this PR, we discovered that when passing cursor specific parameters through the extra parameters of the Elasticsearch connection, the instantiation of the ESConnection failed due to the fact the same arguments where also passed there but aren't recognized. So this PR fixes that issue.

The cursor specific parameters are fetch_size and field_multi_value_leniency, which aren't allowed parameters for the Elasticsearch client.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@jason810496 jason810496 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch! Looks good to me.

@jason810496 jason810496 requested a review from Lee-W April 14, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants