Skip to content

Navigation Menu

Sign in
Sign up

Materialized views with JOINs when Answer Query? #1348

Answered by avamingli
IPetrov2013 asked this question in Q&A
Discussion options

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.

You must be logged in to vote

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:

  1. 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.

  2. 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

Comment options

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:

  1. 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.

  2. 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.

You must be logged in to vote
2 replies
Comment options

Thanks, most of our cases have left joins or inner joins.

Comment options

Good to know, it's reassuring to see your needs align with our technical roadmap.

Answer selected by tuhaihe
Comment options

Hi, @avamingli Do you have any progress update or a rough timeline for this?

You must be logged in to vote
2 replies
Comment options

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.

Comment options

Ping :)

Comment options

Looking forward to this feature as well.

You must be logged in to vote
0 replies
Comment options

Hi, It's been a while since there was an update, could anyone kindly share if this is still actively on the roadmap?

You must be logged in to vote
1 reply
Comment options

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /