Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
Description
Implementation will follow current code path for full rebuild.
When the MV query plan is retrieved, if the MV contents are outdated because there were insert operations in the source tables, we will introduce a filter with a condition based on stored value of ValidWriteIdLists. For instance, WRITE_ID < high_txn_id AND WRITE_ID NOT IN (x, y, ...). Then the rewriting will do the rest of the work by creating a partial rewriting, where the contents of the MV are read as well as the new contents from the source tables.
This mechanism will not work only for ALTER MV... REBUILD, but also for user queries which will be able to benefit from using outdated MVs to compute part of the needed results.
Attachments
Attachments
Issue Links
- causes
-
HIVE-19114 MV rewriting not being triggered for last query in materialized_view_rewrite_4.q
- Open
- contains
-
HIVE-18667 Materialized views: rewrites should be triggered without checks if the time.window=-1
- Closed
- is blocked by
-
HIVE-18957 Upgrade Calcite version to 1.16.0
- Closed
- is depended upon by
-
HIVE-19111 ACID: PPD & Split-pruning for txn_id filters
- Open
- relates to
-
HIVE-24854 Incremental Materialized view refresh in presence of update/delete operations
- Closed
- links to