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

Initial setup for federated queries #1350

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

phillipleblanc
Copy link
Contributor

@phillipleblanc phillipleblanc commented May 9, 2024

Initial setup for #1318

Implementing federated queries will be a large change - instead of batching it up into one big PR that is hard to review properly, I will instead opt for more frequent, smaller PRs.

To ensure trunk stays in a consistent state, the new federation code is gated behind a federation-experimental feature flag that is disabled by default. A new Makefile target install-with-federation is added to build Spice with the federation capability enabled.

If the federation-experimental flag is enabled, we extend the DataFusion SessionContext with the FederationQueryPlanner and FederationAnalyzerRule from the datafusion-federation crate. This won't actually do anything yet, since we haven't registered any of our tables as federated (from the point of view of the datafusion-federation crate).

For now, I'm working out of my own private fork https://github.com/phillipleblanc/datafusion-federation. This is to enable rapid iteration, and facilitate easy PRs to the upstream source. My goal is by the time we mark this feature as non-experimental, this will be pointing to the upstream repo and not to my fork.

@phillipleblanc phillipleblanc self-assigned this May 9, 2024
@phillipleblanc phillipleblanc requested a review from a team as a code owner May 9, 2024 06:21
@phillipleblanc phillipleblanc enabled auto-merge (squash) May 9, 2024 06:23
@phillipleblanc phillipleblanc merged commit cebb42f into trunk May 9, 2024
17 checks passed
@phillipleblanc phillipleblanc deleted the phillip/240509-federation branch May 9, 2024 07:39
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.

None yet

2 participants