Rust visitor pattern and efficient DataFusion query federation
splitgraph.com
splitgraph.com
https://github.com/ClickHouse/ClickHouse/blob/master/src/Sto...
https://github.com/ClickHouse/ClickHouse/blob/master/src/Sto...
ClickHouse allows federated queries with MySQL, Postgres, ODBC and JDBC data sources.
Though, I imagine there's a region in the data size/network throughput/latency space where simply fetching the data and then doing analytics in ClickHouse is more performant than actually going for the pushdown.[3]
[1] https://www.splitgraph.com/blog/postgresql-fdw-aggregation-p... [2] https://www.splitgraph.com/blog/postgresql-fdw-aggregation-p... [3] https://duckdb.org/2022/09/30/postgres-scanner.html
Automatic pushdown of aggregations is currently not considered, but we consider a syntax to allow explicitly push down a whole subquery.