db2rest icon indicating copy to clipboard operation
db2rest copied to clipboard

Query Federation - Join data from multiple data-sources

Open MichalisDBA opened this issue 1 year ago • 1 comments

It would be great to have the ability to query and join data across multiple data-sources.

An example of that implementation is used by https://trino.io/

An example query would be"

SELECT * FROM mysql.db.table -- MySQL Server
LEFT JOIN mssql.db.table -- Microsoft SQL Server
ON mysql.db.table.id = mssql.db.table.id.id
SELECT * FROM mysql_srv1.db.table -- MySQL Server 1
LEFT JOIN mysql_srv2.db.table -- MySQL Server 2
ON mysql_srv1.db.table.id = mysql_srv2.db.table.id.id

Except tables, support also VIEWS.

MichalisDBA avatar Sep 08 '24 15:09 MichalisDBA

I think this is an enhancement that we could support really well in our Enterprise edition. Would you be able to sponsor the work?

thadguidry avatar Sep 08 '24 23:09 thadguidry