public class HiveAugmentMaterializationRule
extends org.apache.calcite.plan.RelOptRule
This rule will rewrite the materialized view with information about
its invalidation data. In particular, if any of the tables used by the
materialization has been updated since the materialization was created,
it will introduce a filter operator on top of that table in the materialization
definition, making explicit the data contained in it so the rewriting
algorithm can use this information to rewrite the query as a combination of the
outdated materialization data and the new original data in the source tables.
If the data in the source table matches the current data in the snapshot,
no filter is created.