MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / full_transform_list

Function full_transform_list

src/transform/tests/test_runner.rs:51–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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> {

Callers 1

run_single_view_testcaseFunction · 0.85

Calls 4

logical_optimizerFunction · 0.85
physical_optimizerFunction · 0.85
into_iterMethod · 0.45

Tested by

no test coverage detected