Skip to content

Fix Elasticsearch and OpenSearch response wrapper bugs - #73725

Merged
ashb merged 3 commits into
apache:mainfrom
subhramit:fix-search-response-wrapper-bugs
Sep 25, 2026
Merged

ashb merged 3 commits into
apache:mainfrom
subhramit:fix-search-response-wrapper-bugs

Conversation

@subhramit

Copy link
Copy Markdown
Contributor

While reviewing #72310, I came across some existing bugs in the Elasticsearch and Opensearch response wrappers that warranted fixing.

  1. Both the response wrappers mutated the input when merging fields into _source.
  2. Both checked the sliced value instead of the slice key, so if isinstance(val, slice) would always be False and thus slicing returned a plain list instead of AttributeList

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@ashb
ashb merged commit 07197c2 into apache:main Sep 25, 2026
98 checks passed
@subhramit
subhramit deleted the fix-search-response-wrapper-bugs branch September 25, 2026 18: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.

2 participants