Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 1.03 KB

Federation.md

File metadata and controls

12 lines (9 loc) · 1.03 KB

Enabling Query Federation

We use accio to rewrite a federated query into multiple single-source ones, and combine the result locally with datafusion.

To enable query federation for connectorx:

  1. Clone accio: [email protected]:sfu-db/accio.git.
  2. Build accio: cd accio/rewriter && mvn package -Dmaven.test.skip=true.
  3. Move the jar file to location ${YOUR_LOCAL_PYTHON_PATH}/site-packages/connectorx/dependencies/federated-rewriter.jar
  4. Configure accio and set the configuration path as FED_CONFIG_PATH. Example configurations can be found here.
  5. Run federated query using connectorx!

Alternatively, accio provides wrappers that can directly run federated queries on various query engines. In particular, it uses connectorx as the data fetching method when datafusion or polars are the federation engine. For more details, check out here.