(
&self,
relation: &mut MirRelationExpr,
ctx: &mut TransformCtx,
)
| 42 | fields(path.segment = "will_distinct") |
| 43 | )] |
| 44 | fn actually_perform_transform( |
| 45 | &self, |
| 46 | relation: &mut MirRelationExpr, |
| 47 | ctx: &mut TransformCtx, |
| 48 | ) -> Result<(), TransformError> { |
| 49 | // Perform bottom-up equivalence class analysis. |
| 50 | use crate::analysis::DerivedBuilder; |
| 51 | let mut builder = DerivedBuilder::new(ctx.features); |
| 52 | builder.require(NonNegative); |
| 53 | let derived = builder.visit(relation); |
| 54 | let derived = derived.as_view(); |
| 55 | |
| 56 | self.apply( |
| 57 | relation, |
| 58 | derived, |
| 59 | ctx.features.enable_will_distinct_propagation, |
| 60 | ); |
| 61 | |
| 62 | mz_repr::explain::trace_plan(&*relation); |
| 63 | Ok(()) |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | impl WillDistinct { |
nothing calls this directly
no test coverage detected