@@ -16,7 +16,7 @@ use asap_aware_mapping::{
1616 SummaryMaintenanceLifecycleCostInputs , WorkloadDemand ,
1717} ;
1818use planner_types:: post_asap:: {
19- CompositionOperator , EvaluationSchedule , ExecutableDagCompilation , OutputRepresentation ,
19+ CompositionOperator , EvaluationSchedule , OutputRepresentation , PostAsapDagCompilation ,
2020 PostAsapNodeId , SketchAlgorithm , SketchParams , SketchQuery , SummaryExpr , SummaryFamilyType ,
2121 SummaryMaintenanceLifecycle , SummaryMaintenanceMode , SummaryNode , SummaryWindowFramework ,
2222} ;
@@ -1475,7 +1475,7 @@ impl DeploymentPlanCompiler {
14751475 // materializations, then consumed by QueryPlan lowering. The key is
14761476 // the planner DAG node identity across the workload; serving never scans
14771477 // downstream components to rediscover this decision.
1478- let mut executable_dags = vec ! [ None :: <ExecutableDagCompilation >; request. queries. len( ) ] ;
1478+ let mut executable_dags = vec ! [ None :: <PostAsapDagCompilation >; request. queries. len( ) ] ;
14791479 let mut node_bindings =
14801480 BTreeMap :: < ( usize , PostAsapNodeId ) , asap_types:: PolicyFingerprint > :: new ( ) ;
14811481 let mut query_node_bindings =
@@ -1575,7 +1575,7 @@ impl DeploymentPlanCompiler {
15751575 if selected. is_empty ( ) && population_operators[ query_index] . is_none ( ) {
15761576 continue ;
15771577 }
1578- let executable = planner_types:: post_asap:: compile_executable_dag_with_node_ids (
1578+ let executable = planner_types:: post_asap:: compile_post_asap_dag_with_node_ids (
15791579 & query. selected_plan_root ,
15801580 )
15811581 . map_err ( |error| CompileError :: Query {
@@ -1894,14 +1894,15 @@ impl DeploymentPlanCompiler {
18941894 . node_ids
18951895 . node_id ( child)
18961896 . expect ( "selected input node" ) ;
1897- let document = asap_types:: executable_plan:: OwnedPostAsapDag :: from_executable (
1898- query. query_id . clone ( ) ,
1899- & compiled. dag ,
1900- )
1901- . map_err ( |reason| CompileError :: Query {
1902- query_id : query. query_id . clone ( ) ,
1903- reason,
1904- } ) ?;
1897+ let document =
1898+ asap_types:: executable_plan:: OwnedPostAsapDag :: from_post_asap_dag (
1899+ query. query_id . clone ( ) ,
1900+ & compiled. dag ,
1901+ )
1902+ . map_err ( |reason| CompileError :: Query {
1903+ query_id : query. query_id . clone ( ) ,
1904+ reason,
1905+ } ) ?;
19051906 runtime_materialization. derived_input = Some (
19061907 asap_types:: derived_input:: DerivedInputIdentity :: from_dag (
19071908 & document, input_node, & frontiers,
@@ -4081,7 +4082,7 @@ struct SelectedMaterialization {
40814082}
40824083
40834084fn validate_executable_subdag ( node : & Rc < SummaryNode > ) -> Result < ( ) , String > {
4084- let executable = planner_types:: post_asap:: compile_executable_dag ( node)
4085+ let executable = planner_types:: post_asap:: compile_post_asap_dag ( node)
40854086 . map_err ( |error| format ! ( "invalid executable subDAG: {error}" ) ) ?;
40864087 if let Some ( edge) = executable. edges . iter ( ) . find ( |edge| {
40874088 edge. grouping == planner_types:: post_asap:: GroupingEdgeCompatibility :: Incompatible
@@ -4099,7 +4100,7 @@ fn reject_uncertified_readouts(
40994100 root : & Rc < SummaryNode > ,
41004101 accuracy : & AccuracyTarget ,
41014102) -> Result < ( ) , CompileError > {
4102- let dag = planner_types:: post_asap:: compile_executable_dag ( root) . map_err ( |error| {
4103+ let dag = planner_types:: post_asap:: compile_post_asap_dag ( root) . map_err ( |error| {
41034104 CompileError :: Query {
41044105 query_id : query_id. into ( ) ,
41054106 reason : format ! ( "invalid executable subDAG: {error}" ) ,
@@ -4108,7 +4109,7 @@ fn reject_uncertified_readouts(
41084109 for node in & dag. nodes {
41094110 if matches ! (
41104111 node. payload,
4111- planner_types:: post_asap:: ExecutableOperatorPayload :: SummaryEstimate { .. }
4112+ planner_types:: post_asap:: PostAsapOperatorPayload :: SummaryEstimate { .. }
41124113 ) && node
41134114 . guarantee
41144115 . as_ref ( )
@@ -4125,7 +4126,7 @@ fn reject_uncertified_readouts(
41254126 if dag. nodes . iter ( ) . any ( |node| {
41264127 matches ! (
41274128 node. payload,
4128- planner_types:: post_asap:: ExecutableOperatorPayload :: SummaryEstimate { .. }
4129+ planner_types:: post_asap:: PostAsapOperatorPayload :: SummaryEstimate { .. }
41294130 )
41304131 } ) && root. guarantee . as_ref ( ) . is_none_or ( |guarantee| {
41314132 !asap_aware_mapping:: accuracy:: AccuracyModel :: satisfies (
@@ -4883,7 +4884,7 @@ pub(crate) mod tests {
48834884 std:: slice:: from_ref ( & root) ,
48844885 ) ;
48854886 let candidate = rule. candidate ( & root) . unwrap ( ) ;
4886- planner_types:: post_asap:: compile_executable_dag ( & candidate) . unwrap ( ) ;
4887+ planner_types:: post_asap:: compile_post_asap_dag ( & candidate) . unwrap ( ) ;
48874888 assert ! ( !super :: super :: maintained_population:: supported_node(
48884889 & candidate
48894890 ) ) ;
@@ -5185,17 +5186,16 @@ pub(crate) mod tests {
51855186 . find ( |node| {
51865187 matches ! (
51875188 node. payload,
5188- planner_types:: post_asap:: ExecutableOperatorPayload :: SummaryAgg { .. }
5189+ planner_types:: post_asap:: PostAsapOperatorPayload :: SummaryAgg { .. }
51895190 )
51905191 } )
51915192 . unwrap ( ) ;
5192- if let planner_types:: post_asap:: ExecutableOperatorPayload :: SummaryAgg {
5193- reduction, ..
5194- } = & mut node. payload
5193+ if let planner_types:: post_asap:: PostAsapOperatorPayload :: SummaryAgg { reduction, .. } =
5194+ & mut node. payload
51955195 {
51965196 * reduction = planner_types:: pre_asap:: Reduction :: by ( vec ! [ ] ) ;
51975197 }
5198- installed. document = asap_types:: executable_plan:: OwnedPostAsapDag :: from_executable (
5198+ installed. document = asap_types:: executable_plan:: OwnedPostAsapDag :: from_post_asap_dag (
51995199 installed. document . query_id . clone ( ) ,
52005200 & dag,
52015201 )
@@ -7118,19 +7118,19 @@ pub(crate) mod tests {
71187118 } ] ,
71197119 time_index : None ,
71207120 } ;
7121- let dag = ExecutableDag {
7121+ let dag = PostAsapDag {
71227122 nodes : ( 1 ..=5 )
7123- . map ( |id| ExecutableDagNode {
7123+ . map ( |id| PostAsapDagNode {
71247124 id : PostAsapNodeId ( id) ,
7125- payload : ExecutableOperatorPayload :: SummaryMerge ,
7125+ payload : PostAsapOperatorPayload :: SummaryMerge ,
71267126 output_state : ExecutionDataState :: INGESTION_SUMMARY ,
71277127 output_schema : schema. clone ( ) ,
71287128 guarantee : None ,
71297129 } )
71307130 . collect ( ) ,
71317131 edges : [ ( 1 , 2 ) , ( 2 , 3 ) , ( 2 , 4 ) , ( 3 , 5 ) , ( 4 , 5 ) ]
71327132 . into_iter ( )
7133- . map ( |( a, b) | ExecutableDagEdge {
7133+ . map ( |( a, b) | PostAsapDagEdge {
71347134 producer : PostAsapNodeId ( a) ,
71357135 consumer : PostAsapNodeId ( b) ,
71367136 role : EdgeRole :: Input ,
@@ -7143,7 +7143,7 @@ pub(crate) mod tests {
71437143 root : PostAsapNodeId ( 5 ) ,
71447144 } ;
71457145 let mut installed = InstalledPostAsapDag {
7146- document : OwnedPostAsapDag :: from_executable ( "shared" . into ( ) , & dag) . unwrap ( ) ,
7146+ document : OwnedPostAsapDag :: from_post_asap_dag ( "shared" . into ( ) , & dag) . unwrap ( ) ,
71477147 native_programs : BTreeMap :: new ( ) ,
71487148 binding : BackendExecutableBinding {
71497149 nodes : ( 1 ..=5 )
0 commit comments