digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
1 [labelType="html" label="<br><b>DeserializeToObject</b><br><br>"];
subgraph cluster2 {
isCluster="true";
label="WholeStageCodegen (2)\n \nduration: 34 ms";
3 [labelType="html" label="<br><b>Project</b><br><br>"];
}
4 [labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 2<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 37613.0: task 71985))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 2<br>local bytes read: 343.0 B<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 1<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>560.0 B (0.0 B, 560.0 B, 560.0 B (stage 37613.0: task 71985))<br>local merged bytes read: 0.0 B<br>number of partitions: 1<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>343.0 B (0.0 B, 343.0 B, 343.0 B (stage 37613.0: task 71985))"];
subgraph cluster5 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n0 ms (0 ms, 0 ms, 0 ms (stage 37613.0: task 71985))";
6 [labelType="html" label="<b>Filter</b><br><br>number of output rows: 2"];
7 [labelType="html" label="<b>Scan JDBCRelation((<br> SELECT DISTINCT<br> pfd.networkId AS NetworkID, pfd.is_latest,<br> pfd.brand_context_id, pfd.company_id, pfd.launch_config_ref, pfd.revision_version,<br> CAST(COALESCE(m.facility_declaration_ref, pfd.derived_facility_dec_ref,<br> pfd.facility_default_ref) AS varchar(100)) <br> AS facility_declaration_ref,<br> pfd.Value_process, SUBSTRING(m.Materials, 0, 800) AS Materials,<br> n._id AS Child_Node<br> FROM dbo.dimscm_product_field_details_response pfd<br> INNER JOIN dbo.dimscm_product_node_response n<br> ON n.networkId = pfd.networkId<br> AND n.reference_code = pfd.product_node_response_ref<br> LEFT JOIN dbo.dim_compute_scm_product_field_details_response_materials m<br> ON m.networkId = pfd.networkId<br> AND (m.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))<br> AND m.product_node_response_ref = CAST(pfd.product_node_response_ref AS varchar(200))<br> AND m.facility_declaration_ref = CAST(COALESCE(pfd.derived_facility_dec_ref, pfd.facility_default_ref) AS varchar(200))<br> AND m.Value_process = pfd.Value_process<br> WHERE (pfd.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))<br> AND (n.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))<br> ) AS _t) [numPartitions=1] </b><br><br>number of output rows: 5"];
}
1->0;
3->1;
4->3;
6->4;
7->6;
}
8
AdaptiveSparkPlan isFinalPlan=true
DeserializeToObject createexternalrow(NetworkID#15232575.toString, brand_context_id#15232577.toString, company_id#15232578.toString, launch_config_ref#15232579.toString, staticinvoke(class java.lang.Short, ObjectType(class java.lang.Short), valueOf, revision_version#15232580, true, false, true), Child_Node#15232584.toString, staticinvoke(class java.lang.Boolean, ObjectType(class java.lang.Boolean), valueOf, is_latest#15232576, true, false, true), staticinvoke(class java.lang.Boolean, ObjectType(class java.lang.Boolean), valueOf, is_latest_submitted#15234058, true, false, true), facility_declaration_RefID#15234062.toString, Value_process#15234996.toString, Material#15235502.toString, staticinvoke(class org.apache.spark.sql.catalyst.util.DateTimeUtils$, ObjectType(class java.sql.Timestamp), toJavaTimestamp, update_ts#15235503, true, false, true), StructField(NetworkID,StringType,true), StructField(brand_context_id,StringType,true), StructField(company_id,StringType,true), StructField(launch_config_ref,StringType,true), StructField(revision_version,ShortType,true), StructField(Child_Node,StringType,true), StructField(is_latest,BooleanType,true), StructField(is_latest_submitted,BooleanType,false), StructField(facility_declaration_RefID,StringType,true), StructField(Value_process,StringType,true), StructField(Material,StringType,true), StructField(update_ts,TimestampType,false)), obj#15280898: org.apache.spark.sql.Row
Project [NetworkID#15232575, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, Child_Node#15232584, is_latest#15232576, false AS is_latest_submitted#15234058, trim(facility_declaration_ref#15232581, None) AS facility_declaration_RefID#15234062, trim(Value_process#15232582, None) AS Value_process#15234996, CASE WHEN (isnull(trim(Materials#15232583, None)) OR (trim(Materials#15232583, None) = )) THEN null ELSE trim(Materials#15232583, None) END AS Material#15235502, 2026-10-19 07:30:06.14862 AS update_ts#15235503]
WholeStageCodegen (2)
Exchange SinglePartition, REPARTITION_BY_NUM, [plan_id=4311398]
Filter isnotnull(facility_declaration_ref#15232581)
Scan JDBCRelation((
SELECT DISTINCT
pfd.networkId AS NetworkID, pfd.is_latest,
pfd.brand_context_id, pfd.company_id, pfd.launch_config_ref, pfd.revision_version,
CAST(COALESCE(m.facility_declaration_ref, pfd.derived_facility_dec_ref,
pfd.facility_default_ref) AS varchar(100))
AS facility_declaration_ref,
pfd.Value_process, SUBSTRING(m.Materials, 0, 800) AS Materials,
n._id AS Child_Node
FROM dbo.dimscm_product_field_details_response pfd
INNER JOIN dbo.dimscm_product_node_response n
ON n.networkId = pfd.networkId
AND n.reference_code = pfd.product_node_response_ref
LEFT JOIN dbo.dim_compute_scm_product_field_details_response_materials m
ON m.networkId = pfd.networkId
AND (m.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND m.product_node_response_ref = CAST(pfd.product_node_response_ref AS varchar(200))
AND m.facility_declaration_ref = CAST(COALESCE(pfd.derived_facility_dec_ref, pfd.facility_default_ref) AS varchar(200))
AND m.Value_process = pfd.Value_process
WHERE (pfd.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND (n.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
) AS _t) [numPartitions=1] [NetworkID#15232575,is_latest#15232576,brand_context_id#15232577,company_id#15232578,launch_config_ref#15232579,revision_version#15232580,facility_declaration_ref#15232581,Value_process#15232582,Materials#15232583,Child_Node#15232584] PushedFilters: [IsNotNull(facility_declaration_ref)], ReadSchema: struct<NetworkID:string,is_latest:boolean,brand_context_id:string,company_id:string,launch_config...
WholeStageCodegen (1)
== Physical Plan ==
AdaptiveSparkPlan (10)
+- == Final Plan ==
DeserializeToObject (6)
+- * Project (5)
+- ShuffleQueryStage (4), Statistics(sizeInBytes=560.0 B, rowCount=2)
+- Exchange (3)
+- * Filter (2)
+- * Scan JDBCRelation((
SELECT DISTINCT
pfd.networkId AS NetworkID, pfd.is_latest,
pfd.brand_context_id, pfd.company_id, pfd.launch_config_ref, pfd.revision_version,
CAST(COALESCE(m.facility_declaration_ref, pfd.derived_facility_dec_ref,
pfd.facility_default_ref) AS varchar(100))
AS facility_declaration_ref,
pfd.Value_process, SUBSTRING(m.Materials, 0, 800) AS Materials,
n._id AS Child_Node
FROM dbo.dimscm_product_field_details_response pfd
INNER JOIN dbo.dimscm_product_node_response n
ON n.networkId = pfd.networkId
AND n.reference_code = pfd.product_node_response_ref
LEFT JOIN dbo.dim_compute_scm_product_field_details_response_materials m
ON m.networkId = pfd.networkId
AND (m.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND m.product_node_response_ref = CAST(pfd.product_node_response_ref AS varchar(200))
AND m.facility_declaration_ref = CAST(COALESCE(pfd.derived_facility_dec_ref, pfd.facility_default_ref) AS varchar(200))
AND m.Value_process = pfd.Value_process
WHERE (pfd.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND (n.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
) AS _t) [numPartitions=1] (1)
+- == Initial Plan ==
DeserializeToObject (9)
+- Project (8)
+- Exchange (7)
+- Filter (2)
+- Scan JDBCRelation((
SELECT DISTINCT
pfd.networkId AS NetworkID, pfd.is_latest,
pfd.brand_context_id, pfd.company_id, pfd.launch_config_ref, pfd.revision_version,
CAST(COALESCE(m.facility_declaration_ref, pfd.derived_facility_dec_ref,
pfd.facility_default_ref) AS varchar(100))
AS facility_declaration_ref,
pfd.Value_process, SUBSTRING(m.Materials, 0, 800) AS Materials,
n._id AS Child_Node
FROM dbo.dimscm_product_field_details_response pfd
INNER JOIN dbo.dimscm_product_node_response n
ON n.networkId = pfd.networkId
AND n.reference_code = pfd.product_node_response_ref
LEFT JOIN dbo.dim_compute_scm_product_field_details_response_materials m
ON m.networkId = pfd.networkId
AND (m.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND m.product_node_response_ref = CAST(pfd.product_node_response_ref AS varchar(200))
AND m.facility_declaration_ref = CAST(COALESCE(pfd.derived_facility_dec_ref, pfd.facility_default_ref) AS varchar(200))
AND m.Value_process = pfd.Value_process
WHERE (pfd.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND (n.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
) AS _t) [numPartitions=1] (1)
(1) Scan JDBCRelation((
SELECT DISTINCT
pfd.networkId AS NetworkID, pfd.is_latest,
pfd.brand_context_id, pfd.company_id, pfd.launch_config_ref, pfd.revision_version,
CAST(COALESCE(m.facility_declaration_ref, pfd.derived_facility_dec_ref,
pfd.facility_default_ref) AS varchar(100))
AS facility_declaration_ref,
pfd.Value_process, SUBSTRING(m.Materials, 0, 800) AS Materials,
n._id AS Child_Node
FROM dbo.dimscm_product_field_details_response pfd
INNER JOIN dbo.dimscm_product_node_response n
ON n.networkId = pfd.networkId
AND n.reference_code = pfd.product_node_response_ref
LEFT JOIN dbo.dim_compute_scm_product_field_details_response_materials m
ON m.networkId = pfd.networkId
AND (m.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND m.product_node_response_ref = CAST(pfd.product_node_response_ref AS varchar(200))
AND m.facility_declaration_ref = CAST(COALESCE(pfd.derived_facility_dec_ref, pfd.facility_default_ref) AS varchar(200))
AND m.Value_process = pfd.Value_process
WHERE (pfd.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
AND (n.networkId IN ('A2A9E9C449997C986ACA673B3CCFF865C70F521FCEFE33CA926A746780C00A1D'))
) AS _t) [numPartitions=1] [codegen id : 1]
Output [10]: [NetworkID#15232575, is_latest#15232576, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, facility_declaration_ref#15232581, Value_process#15232582, Materials#15232583, Child_Node#15232584]
PushedFilters: [IsNotNull(facility_declaration_ref)]
ReadSchema: struct<NetworkID:string,is_latest:boolean,brand_context_id:string,company_id:string,launch_config_ref:string,revision_version:smallint,facility_declaration_ref:string,Value_process:string,Materials:string,Child_Node:string>
(2) Filter [codegen id : 1]
Input [10]: [NetworkID#15232575, is_latest#15232576, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, facility_declaration_ref#15232581, Value_process#15232582, Materials#15232583, Child_Node#15232584]
Condition : isnotnull(facility_declaration_ref#15232581)
(3) Exchange
Input [10]: [NetworkID#15232575, is_latest#15232576, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, facility_declaration_ref#15232581, Value_process#15232582, Materials#15232583, Child_Node#15232584]
Arguments: SinglePartition, REPARTITION_BY_NUM, [plan_id=4311398]
(4) ShuffleQueryStage
Output [10]: [NetworkID#15232575, is_latest#15232576, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, facility_declaration_ref#15232581, Value_process#15232582, Materials#15232583, Child_Node#15232584]
Arguments: 0
(5) Project [codegen id : 2]
Output [12]: [NetworkID#15232575, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, Child_Node#15232584, is_latest#15232576, false AS is_latest_submitted#15234058, trim(facility_declaration_ref#15232581, None) AS facility_declaration_RefID#15234062, trim(Value_process#15232582, None) AS Value_process#15234996, CASE WHEN (isnull(trim(Materials#15232583, None)) OR (trim(Materials#15232583, None) = )) THEN null ELSE trim(Materials#15232583, None) END AS Material#15235502, 2026-10-19 07:30:06.14862 AS update_ts#15235503]
Input [10]: [NetworkID#15232575, is_latest#15232576, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, facility_declaration_ref#15232581, Value_process#15232582, Materials#15232583, Child_Node#15232584]
(6) DeserializeToObject
Input [12]: [NetworkID#15232575, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, Child_Node#15232584, is_latest#15232576, is_latest_submitted#15234058, facility_declaration_RefID#15234062, Value_process#15234996, Material#15235502, update_ts#15235503]
Arguments: createexternalrow(NetworkID#15232575.toString, brand_context_id#15232577.toString, company_id#15232578.toString, launch_config_ref#15232579.toString, staticinvoke(class java.lang.Short, ObjectType(class java.lang.Short), valueOf, revision_version#15232580, true, false, true), Child_Node#15232584.toString, staticinvoke(class java.lang.Boolean, ObjectType(class java.lang.Boolean), valueOf, is_latest#15232576, true, false, true), staticinvoke(class java.lang.Boolean, ObjectType(class java.lang.Boolean), valueOf, is_latest_submitted#15234058, true, false, true), facility_declaration_RefID#15234062.toString, Value_process#15234996.toString, Material#15235502.toString, staticinvoke(class org.apache.spark.sql.catalyst.util.DateTimeUtils$, ObjectType(class java.sql.Timestamp), toJavaTimestamp, update_ts#15235503, true, false, true), StructField(NetworkID,StringType,true), StructField(brand_context_id,StringType,true), StructField(company_id,StringType,true), StructField(launch_config_ref,StringType,true), StructField(revision_version,ShortType,true), StructField(Child_Node,StringType,true), StructField(is_latest,BooleanType,true), StructField(is_latest_submitted,BooleanType,false), StructField(facility_declaration_RefID,StringType,true), StructField(Value_process,StringType,true), StructField(Material,StringType,true), StructField(update_ts,TimestampType,false)), obj#15280898: org.apache.spark.sql.Row
(7) Exchange
Input [10]: [NetworkID#15232575, is_latest#15232576, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, facility_declaration_ref#15232581, Value_process#15232582, Materials#15232583, Child_Node#15232584]
Arguments: SinglePartition, REPARTITION_BY_NUM, [plan_id=4311389]
(8) Project
Output [12]: [NetworkID#15232575, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, Child_Node#15232584, is_latest#15232576, false AS is_latest_submitted#15234058, trim(facility_declaration_ref#15232581, None) AS facility_declaration_RefID#15234062, trim(Value_process#15232582, None) AS Value_process#15234996, CASE WHEN (isnull(trim(Materials#15232583, None)) OR (trim(Materials#15232583, None) = )) THEN null ELSE trim(Materials#15232583, None) END AS Material#15235502, 2026-10-19 07:30:06.14862 AS update_ts#15235503]
Input [10]: [NetworkID#15232575, is_latest#15232576, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, facility_declaration_ref#15232581, Value_process#15232582, Materials#15232583, Child_Node#15232584]
(9) DeserializeToObject
Input [12]: [NetworkID#15232575, brand_context_id#15232577, company_id#15232578, launch_config_ref#15232579, revision_version#15232580, Child_Node#15232584, is_latest#15232576, is_latest_submitted#15234058, facility_declaration_RefID#15234062, Value_process#15234996, Material#15235502, update_ts#15235503]
Arguments: createexternalrow(NetworkID#15232575.toString, brand_context_id#15232577.toString, company_id#15232578.toString, launch_config_ref#15232579.toString, staticinvoke(class java.lang.Short, ObjectType(class java.lang.Short), valueOf, revision_version#15232580, true, false, true), Child_Node#15232584.toString, staticinvoke(class java.lang.Boolean, ObjectType(class java.lang.Boolean), valueOf, is_latest#15232576, true, false, true), staticinvoke(class java.lang.Boolean, ObjectType(class java.lang.Boolean), valueOf, is_latest_submitted#15234058, true, false, true), facility_declaration_RefID#15234062.toString, Value_process#15234996.toString, Material#15235502.toString, staticinvoke(class org.apache.spark.sql.catalyst.util.DateTimeUtils$, ObjectType(class java.sql.Timestamp), toJavaTimestamp, update_ts#15235503, true, false, true), StructField(NetworkID,StringType,true), StructField(brand_context_id,StringType,true), StructField(company_id,StringType,true), StructField(launch_config_ref,StringType,true), StructField(revision_version,ShortType,true), StructField(Child_Node,StringType,true), StructField(is_latest,BooleanType,true), StructField(is_latest_submitted,BooleanType,false), StructField(facility_declaration_RefID,StringType,true), StructField(Value_process,StringType,true), StructField(Material,StringType,true), StructField(update_ts,TimestampType,false)), obj#15280898: org.apache.spark.sql.Row
(10) AdaptiveSparkPlan
Output [1]: [obj#15280898]
Arguments: isFinalPlan=true