Skip to content

Conversation

@pmpailis
Copy link
Contributor

@pmpailis pmpailis commented Nov 11, 2025

In this PR we add support for column pruning for FORK branches. The main idea is that we apply pruning in two steps:

  • First, we limit FORK's output based on the actual needed attributes in PruneColumns rule.
  • Then, based on these attributes, we proceed to prune each branch of the FORK plan independently in the newly interoduced PrunceColumnsInForkBranches, with the same needed params as base (i.e. FORK's output). We then proceed to compute separately any additional needed params for each branch and keep/remove plans as per PruneColumns.

Closes #136365

@pmpailis pmpailis added :Search Relevance/ES|QL Search functionality in ES|QL >bug labels Nov 26, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @pmpailis, I've created a changelog YAML for you.

@pmpailis pmpailis force-pushed the fix_136365_prune_columns_when_fork branch from 708291d to 52893e6 Compare November 26, 2025 09:22
@pmpailis pmpailis marked this pull request as ready for review November 26, 2025 10:56
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Nov 26, 2025
@pmpailis
Copy link
Contributor Author

run elasticsearch-ci/part-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search Relevance/ES|QL Search functionality in ES|QL Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ES|QL: PruneColumns fails to prune columns when forked

2 participants