Skip to content

Refactor MV_UNION and MV_INTERSECTION to use abstract base class#140623

Merged
mridula-s109 merged 17 commits intoelastic:mainfrom
mridula-s109:refactor-mv_function
Jan 21, 2026
Merged

Refactor MV_UNION and MV_INTERSECTION to use abstract base class#140623
mridula-s109 merged 17 commits intoelastic:mainfrom
mridula-s109:refactor-mv_function

Conversation

@mridula-s109
Copy link
Copy Markdown
Contributor

Follow-up to #139982.

This PR extracts common set operation logic into a abstract class to reduce code duplication between MV_UNION and MV_INTERSECTION.

@mridula-s109 mridula-s109 self-assigned this Jan 13, 2026
@mridula-s109 mridula-s109 changed the title [ES|QL] Refactor MV_UNION and MV_INTERSECTION to use abstract base class Refactor MV_UNION and MV_INTERSECTION to use abstract base class Jan 13, 2026
@mridula-s109 mridula-s109 marked this pull request as ready for review January 20, 2026 12:30
@elasticsearchmachine elasticsearchmachine added the needs:triage Requires assignment of a team area label label Jan 20, 2026
@mridula-s109 mridula-s109 added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch :Search Relevance/ES|QL Search functionality in ES|QL labels Jan 20, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label Jan 20, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Hi @mridula-s109, I've created a changelog YAML for you.

Copy link
Copy Markdown
Contributor

@markjhoy markjhoy left a comment

Choose a reason for hiding this comment

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

👍 Nice and clean. Looks good assuming all the previous tests all pass

Copy link
Copy Markdown
Member

@ioanatia ioanatia left a comment

Choose a reason for hiding this comment

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

nice work!

@mridula-s109 mridula-s109 removed the request for review from craigtaverner January 21, 2026 10:31
@mridula-s109 mridula-s109 merged commit 3e731e0 into elastic:main Jan 21, 2026
35 checks passed
spinscale pushed a commit to spinscale/elasticsearch that referenced this pull request Jan 21, 2026
…stic#140623)

* Cleaned up using base class implementation

* PR comments addressed

* [CI] Auto commit changes from spotless

* Removed redundant code

* Refactored

* Update docs/changelog/140623.yaml

* [CI] Auto commit changes from spotless

* Delete docs/changelog/140623.yaml

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Relevance/ES|QL Search functionality in ES|QL Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants