vitess icon indicating copy to clipboard operation
vitess copied to clipboard

Feature Request: Support JOIN as an aggregation in vitess materialize

Open Amila-Rukshan opened this issue 1 year ago • 1 comments

Feature Description

I would like to have the support for the above so we can have materialized joined table outputs:

Sample command:

vtctlclient Materialize -- '{"workflow": "car_search", "source_keyspace": "car-listing-marketplace", "target_keyspace": "car-listing-marketplace", "table_settings": [{"target_table": "car_search", "source_expression": "SELECT id, make, model, year, mileage, price, JSON_ARRAYAGG(JSON_OBJECT('\''start'\'', booking.start_time, '\''end'\'', booking.end_time)) AS booked_times FROM car LEFT JOIN booking ON car.id = booking.car_id GROUP BY car.id" }]}'

Use Case(s)

Users can keep derived tables by joining main tables where joining big tables is frequent and / or expensive.

Amila-Rukshan avatar Dec 11 '23 17:12 Amila-Rukshan

@rohit-nayak-ps this is another issue related to your work on supporting JOINs.

mattlord avatar Sep 25 '24 14:09 mattlord