()
| 49 | const TEST_GLOBAL_ID: GlobalId = GlobalId::Transient(1234567); |
| 50 | |
| 51 | fn full_transform_list() -> Vec<Box<dyn Transform>> { |
| 52 | let features = OptimizerFeatures::default(); |
| 53 | let typecheck_ctx = typecheck::empty_typechecking_context(); |
| 54 | let mut df_meta = DataflowMetainfo::default(); |
| 55 | let mut transform_ctx = TransformCtx::local( |
| 56 | &features, |
| 57 | &typecheck_ctx, |
| 58 | &mut df_meta, |
| 59 | None, |
| 60 | Some(TEST_GLOBAL_ID), |
| 61 | ); |
| 62 | |
| 63 | #[allow(deprecated)] |
| 64 | Optimizer::logical_optimizer(&mut transform_ctx) |
| 65 | .transforms |
| 66 | .into_iter() |
| 67 | .chain(std::iter::once::<Box<dyn Transform>>(Box::new( |
| 68 | mz_transform::movement::ProjectionPushdown::default(), |
| 69 | ))) |
| 70 | .chain(std::iter::once::<Box<dyn Transform>>(Box::new( |
| 71 | mz_transform::normalize_lets::NormalizeLets::new(false), |
| 72 | ))) |
| 73 | .chain(Optimizer::logical_cleanup_pass(&mut transform_ctx, false).transforms) |
| 74 | .chain(Optimizer::physical_optimizer(&mut transform_ctx).transforms) |
| 75 | .collect::<Vec<_>>() |
| 76 | } |
| 77 | |
| 78 | #[derive(Debug, Copy, Clone, PartialEq, Eq)] |
| 79 | enum FormatType<'a> { |
no test coverage detected