Skip to content

Commit 0d1aefa

Browse files
authored
Expose mv_plans for ViewMatcher (#22) (#109)
1 parent 4539acf commit 0d1aefa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/rewrite/exploitation.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ impl ViewMatcher {
114114

115115
Ok(ViewMatcher { mv_plans })
116116
}
117+
118+
/// Returns the materialized views and their corresponding normal forms.
119+
pub fn mv_plans(&self) -> &HashMap<TableReference, (Arc<dyn TableProvider>, SpjNormalForm)> {
120+
&self.mv_plans
121+
}
117122
}
118123

119124
impl OptimizerRule for ViewMatcher {

0 commit comments

Comments
 (0)