Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove page alignment in exchange sink #124610

Merged
merged 2 commits into from
Mar 14, 2025
Merged

Remove page alignment in exchange sink #124610

merged 2 commits into from
Mar 14, 2025

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Mar 12, 2025

I see that planning the ExchangeSinkExec takes a few milliseconds when benchmarking simple queries with 10K fields. It spends time checking if we need to realign the incoming pages. However, the exchange has the exact same attributes as its child, so the incoming layout should match its attributes perfectly. This change removes the realignment.

I will open a follow-up PR to remove this flag. I will also look into removing the alignment of OutputExec.

@dnhatn dnhatn changed the title Add assertion for exchanges WIP Mar 12, 2025
@dnhatn dnhatn changed the title WIP Remove page alignment in exchange sink Mar 13, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@dnhatn dnhatn marked this pull request as ready for review March 13, 2025 18:15
@dnhatn dnhatn requested review from costin and astefan March 13, 2025 18:15
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Mar 13, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@dnhatn dnhatn added the auto-backport Automatically create backport pull requests when merged label Mar 13, 2025
@dnhatn
Copy link
Member Author

dnhatn commented Mar 14, 2025

Thanks @idegtiarenko.

@dnhatn dnhatn merged commit 49254b0 into elastic:main Mar 14, 2025
17 checks passed
@dnhatn dnhatn deleted the esql-assert branch March 14, 2025 15:40
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 124610

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged backport pending >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants