[MDEV-15147] CONNECT engine JDBC to support JOIN clause push-down Created: 2018-01-31  Updated: 2018-01-31

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Connect
Fix Version/s: None

Type: Task Priority: Major
Reporter: Robert Dyas Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

This is a feature request to add JOIN clause push down for CONNECT engine JDBC.

Currently, if you issue a query to several CONNECT tables JOINed together that are all from the same remote database, and a WHERE clause is only specified for a single table, the other tables bring back all rows to do the join in MariaDB. This feature request is to "push down" the JOIN clause so that effectively the entire query is processed on the remote server and only the results are returned.

Example (all tables in the example below are CONNECT JDBC tables):

SELECT * 
FROM Customers
JOIN Orders ON (Orders.Customer_ID = Customers.Customer_ID)
JOIN Order_Lines ON (Order_Lines .Order_ID = Orders.Order_ID)
JOIN Items ON (Items.Item_ID = Order_Lines.Item_ID)
WHERE Customer_ID = 1234

Something like the above query is very common for us, where we are looking at data across several remote tables but only one of the tables has a restriction (all orders for a certain customer, or all orders for a certain date range).


Generated at Thu Feb 08 08:19:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.