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

GH-5227: fix binding assigner optimizer in FedX #5228

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

aschwarte10
Copy link
Contributor

@aschwarte10 aschwarte10 commented Jan 14, 2025

GitHub issue resolved: #5227

The federation optimizer was missing to execute the binding assigner (which injects external bindings into the statement pattern). The consequence was potentially incorrect results (due to source source selection with partial knowledge) as well as sub-optimal source selection

Issue is covered with a unit test, which is failing in two places prior to this change.


PR Author Checklist (see the contributor guidelines for more details):

  • my pull request is self-contained
  • I've added tests for the changes I made
  • I've applied code formatting (you can use mvn process-resources to format from the command line)
  • I've squashed my commits where necessary
  • every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

/**
* List of standard {@link QueryOptimizer}s applicable to federation
*/
protected static final List<QueryOptimizer> standardOptimizers = List.of(
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be protected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no need in this case, adjusted (as only change in the pushed commit). Thanks for the review

The federation optimizer was missing to execute the binding assigner
(which injects external bindings into the statement pattern). The
consequence was potentially incorrect results (due to source source
selection with partial knowledge) as well as sub-optimal source
selection

Issue is covered with a unit test, which is failing in two places prior
to this change.
@aschwarte10 aschwarte10 force-pushed the GH-5227-fedx-binding-assign-optimizer branch from fa65202 to 99d7ba3 Compare January 22, 2025 06:19
Copy link
Contributor

@hmottestad hmottestad left a comment

Choose a reason for hiding this comment

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

Looks good. Feel free to merge when your ready.

@aschwarte10 aschwarte10 merged commit 98d8944 into main Jan 24, 2025
9 checks passed
@aschwarte10 aschwarte10 deleted the GH-5227-fedx-binding-assign-optimizer branch January 24, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FedX: optimizer does not insert (external) bindings prior to source selection
2 participants