-
Notifications
You must be signed in to change notification settings - Fork 246
Materialized views with JOINs when Answer Query? #1348
Hi,
The Answer Query feature for single tables is great. Are there any plans to make it work for queries with JOINs? Most of our queries have joins, so that would be a huge help.
Thanks.
All reactions
Hi, @IPetrov2013
Thank you for your inquiry.
Supporting multi-relations—including joins and Cartesian products—is a key part of the AQUMV roadmap.
Our approach to this feature is structured in two primary phases:
-
Materialized View Maintenance:
The foundational catalog design already incorporates the necessary structures for multi-relations. If we decide to do that, the upcoming work will focus on developing the maintenance mechanisms for these views. -
Automatic Query Rewrite:
This phase presents a more significant technical challenge. It requires developing an algorithm capable of rewriting user queries with complex multi-relation logic to utilize the materialized views correctly.
We...
Replies: 4 comments 5 replies
Hi, @IPetrov2013
Thank you for your inquiry.
Supporting multi-relations—including joins and Cartesian products—is a key part of the AQUMV roadmap.
Our approach to this feature is structured in two primary phases:
-
Materialized View Maintenance:
The foundational catalog design already incorporates the necessary structures for multi-relations. If we decide to do that, the upcoming work will focus on developing the maintenance mechanisms for these views. -
Automatic Query Rewrite:
This phase presents a more significant technical challenge. It requires developing an algorithm capable of rewriting user queries with complex multi-relation logic to utilize the materialized views correctly.
We fully recognize the importance of this capability. However, this is not easy.
I think our development strategy will be to incrementally add support, beginning with simpler constructs like self-joins, followed by inner joins, and then expanding to outer joins and other complex operations.
We appreciate your feedback and will provide further updates as development progresses.
All reactions
-
👍 4
Thanks, most of our cases have left joins or inner joins.
All reactions
Good to know, it's reassuring to see your needs align with our technical roadmap.
All reactions
Hi, @avamingli Do you have any progress update or a rough timeline for this?
All reactions
Hi, I'm currently busy with work and haven't had a chance to start on this yet. I will provide an update as soon as I have one. Thanks for your patience.
All reactions
Ping :)
All reactions
Looking forward to this feature as well.
All reactions
Hi, It's been a while since there was an update, could anyone kindly share if this is still actively on the roadmap?
All reactions
I'm personally very interested in the project, though I should note it's not currently within my primary work priorities. I'll do my best to contribute.