-
Notifications
You must be signed in to change notification settings - Fork 986
DRILL-8543: Add Support for Materialized Views #3036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
letian-jiang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Materialized view is a powerful feature for analytic engine. 🥳
...a-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/MaterializedViewHandler.java
Show resolved
Hide resolved
exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
Show resolved
Hide resolved
letian-jiang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also add a plan-asserting test to ensure the query is correctly rewrite using MV.
|
@letian-jiang I believe I addressed your review comments. Could you please mark the review as complete so we can merge? |
letian-jiang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
DRILL-8543: Add Support for Materialized Views
Description
This PR adds materialized view support to Apache Drill, enabling users to store pre-computed query results for improved query performance.
Features
Implementation
Configuration
planner.enable_materialized_view_rewrite(default: true) - Controls automatic query rewritingDocumentation
Added docs/dev/MaterializedViews.md with complete feature documentation
Testing
Added additional unit tests.