digraph G {
0 [id="node0" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
1 [id="node1" labelType="html" label="<b>CollectLimit</b><br><br>shuffle records written: 0<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 0<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>local merged bytes read: 0.0 B<br>remote reqs duration: 0 ms<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 0.0 B" tooltip="CollectLimit 1"];
subgraph cluster2 {
isCluster="true";
id="cluster2";
label="WholeStageCodegen (1)\n \nduration: total (min, med, max (stageId: taskId))\n13 ms (0 ms, 0 ms, 2 ms (stage 76189.0: task 185788))";
tooltip="WholeStageCodegen (1)";
3 [id="node3" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project"];
4 [id="node4" labelType="html" label="<b>Filter</b><br><br>number of output rows: 0" tooltip="Filter (size(unresolvedDependencies#906185, true) > 0)"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 15" tooltip="InMemoryTableScan [unresolvedDependencies#906185], [(size(unresolvedDependencies#906185, true) > 0)]"];
6 [id="node6" labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>" tooltip="AdaptiveSparkPlan isFinalPlan=true"];
subgraph cluster7 {
isCluster="true";
id="cluster7";
label="WholeStageCodegen (10)\n \nduration: total (min, med, max (stageId: taskId))\n51 ms (0 ms, 1 ms, 11 ms (stage 76183.0: task 185759))";
tooltip="WholeStageCodegen (10)";
8 [id="node8" labelType="html" label="<br><b>SerializeFromObject</b><br><br>" tooltip="SerializeFromObject [assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 0, orderProposalId), LongType, ObjectType(class java.lang.Long)).longValue())) AS orderProposalId#906179L, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(1))) null else static_invoke(UTF8String.fromString(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 1, plant), StringType, ObjectType(class java.lang.String)))) AS plant#906180, if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -1), assertnotnull(invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -1), LongType, ObjectType(class java.lang.Long)).longValue())), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object)), None) AS previousOrderProposals#906181, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#906182L, if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -2), assertnotnull(invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -2), LongType, ObjectType(class java.lang.Long)).longValue())), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object)), None) AS dependentOnNodeIds#906183, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(5))) null else invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 5, clusterId), LongType, ObjectType(class java.lang.Long)).longValue()) AS clusterId#906184L, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(6))) null else if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -3), invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -3), LongType, ObjectType(class java.lang.Long)).longValue()), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object)), None) AS unresolvedDependencies#906185]"];
}
9 [id="node9" labelType="html" label="<br><b>MapPartitions</b><br><br>" tooltip="MapPartitions org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@f9c64cd, obj#906171: org.apache.spark.sql.Row"];
10 [id="node10" labelType="html" label="<br><b>DeserializeToObject</b><br><br>" tooltip="DeserializeToObject createexternalrow(static_invoke(java.lang.Long.valueOf(orderProposalId#906097L)), invoke(plant#906127.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#906128, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#906151L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#906152, Some(class scala.collection.mutable.ArraySeq)), StructField(orderProposalId,LongType,false), StructField(plant,StringType,true), StructField(previousOrderProposals,ArrayType(LongType,false),false), StructField(nodeId,LongType,false), StructField(dependentOnNodeIds,ArrayType(LongType,false),false)), obj#906163: org.apache.spark.sql.Row"];
11 [id="node11" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 15<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 15<br>local bytes read total (min, med, max (stageId: taskId))<br>718.0 B (312.0 B, 406.0 B, 406.0 B (stage 76183.0: task 185744))<br>merged fetch fallback count: 0<br>local blocks read: 2<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 1760.0 B<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 76183.0: task 185745))<br>remote bytes read: 0.0 B<br>number of partitions: 25<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 718.0 B" tooltip="Exchange hashpartitioning(plant#906127, 25), REPARTITION_BY_COL, [plan_id=354290]"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (9)\n \nduration: 34 ms";
tooltip="WholeStageCodegen (9)";
13 [id="node13" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, previousOrderProposals#906128 AS dependentOnNodeIds#906152]"];
}
14 [id="node14" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 15<br>time in aggregation build: 88 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[orderProposalId#906097L], functions=[min(plant#906011), collect_set(previousOrderProposal#906126L, 0, 0)])"];
15 [id="node15" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1866.0 B<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
16 [id="node16" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 15<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 15<br>local bytes read: 1782.0 B<br>merged fetch fallback count: 0<br>local blocks read: 11<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 1480.0 B<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>number of partitions: 25<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 1782.0 B" tooltip="Exchange hashpartitioning(orderProposalId#906097L, 25), ENSURE_REQUIREMENTS, [plan_id=354238]"];
17 [id="node17" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 15<br>time in aggregation build: 84 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[orderProposalId#906097L], functions=[partial_min(plant#906011), partial_collect_set(previousOrderProposal#906126L, 0, 0)])"];
subgraph cluster18 {
isCluster="true";
id="cluster18";
label="WholeStageCodegen (8)\n \nduration: 84 ms";
tooltip="WholeStageCodegen (8)";
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#906011, orderProposalId#906097L, previousOrderProposal#906126L]"];
}
20 [id="node20" labelType="html" label="<b>Window</b><br><br>spill size: 0.0 B" tooltip="Window [lag(orderProposalId#906097L, -1, null) windowspecdefinition(product#906062, plant#906011, availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#906126L], [product#906062, plant#906011], [availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (7)\n \nduration: 285 ms";
tooltip="WholeStageCodegen (7)";
22 [id="node22" labelType="html" label="<b>Sort</b><br><br>sort time: 0 ms<br>peak memory: 2.1 MiB<br>spill size: 0.0 B" tooltip="Sort [product#906062 ASC NULLS FIRST, plant#906011 ASC NULLS FIRST, availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST], false, 0"];
}
23 [id="node23" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1653.0 B<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
24 [id="node24" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 24<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 24<br>local bytes read: 1552.0 B<br>merged fetch fallback count: 0<br>local blocks read: 6<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 2.6 KiB<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 0.0 B<br>number of partitions: 25<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 1552.0 B" tooltip="Exchange hashpartitioning(product#906062, plant#906011, 25), ENSURE_REQUIREMENTS, [plan_id=354140]"];
subgraph cluster25 {
isCluster="true";
id="cluster25";
label="WholeStageCodegen (6)\n \nduration: 38 ms";
tooltip="WholeStageCodegen (6)";
26 [id="node26" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#906011, productOrderScheduleExploded#906061.product AS product#906062, productOrderScheduleExploded#906061.orderDateTime AS orderDateTime#906063, productOrderScheduleExploded#906061.availabilityDateTime AS availabilityDateTime#906064, xxhash64(CASE WHEN (_extract_supplierSubrange#906186 <=> true) THEN effectiveSubrange#906036 END, orderGroupingProfile#906021, CASE WHEN (_extract_mrpController#906187 <=> true) THEN productOrderScheduleExploded#906061.mrpController END, CASE WHEN (_extract_purchasingOrg#906188 <=> true) THEN productOrderScheduleExploded#906061.purchasingOrg END, CASE WHEN (_extract_orderDate#906189 <=> true) THEN productOrderScheduleExploded#906061.orderDateTime END, CASE WHEN (_extract_deliveryDate#906190 <=> true) THEN deliveryDateTime#906012 END, CASE WHEN (_extract_supplier#906191 <=> true) THEN supplierOrGroup#906038 END, locationOrGroup#906039, CASE WHEN (_extract_purchasingGroup#906192 <=> true) THEN productOrderScheduleExploded#906061.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#906036) AND (_extract_supplierSubrange#906186 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#906021) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.mrpController) AND (_extract_mrpController#906187 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.purchasingOrg) AND (_extract_purchasingOrg#906188 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.orderDateTime) AND (_extract_orderDate#906189 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#906012) AND (_extract_deliveryDate#906190 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#906038) AND (_extract_supplier#906191 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#906039) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.purchasingGroup) AND (_extract_purchasingGroup#906192 <=> true)) THEN 256 ELSE 0 END), 10000002110, 42) AS orderProposalId#906097L]"];
27 [id="node27" labelType="html" label="<b>Generate</b><br><br>number of output rows: 24" tooltip="Generate explode(productOrderSchedule#906016), [plant#906011, deliveryDateTime#906012, effectiveSubrange#906036, _extract_supplierSubrange#906186, _extract_mrpController#906187, _extract_purchasingOrg#906188, _extract_orderDate#906189, _extract_deliveryDate#906190, _extract_supplier#906191, _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039], false, [productOrderScheduleExploded#906061]"];
28 [id="node28" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, orderGroupCriteria#906049.supplierSubrange AS _extract_supplierSubrange#906186, orderGroupCriteria#906049.mrpController AS _extract_mrpController#906187, orderGroupCriteria#906049.purchasingOrg AS _extract_purchasingOrg#906188, orderGroupCriteria#906049.orderDate AS _extract_orderDate#906189, orderGroupCriteria#906049.deliveryDate AS _extract_deliveryDate#906190, orderGroupCriteria#906049.supplier AS _extract_supplier#906191, orderGroupCriteria#906049.purchasingGroup AS _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039]"];
29 [id="node29" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, CASE WHEN isnull(orderGroupCriteria#906030) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#906030 END AS orderGroupCriteria#906049, orderGroupingProfile#906021, coalesce(supplierGroup#906009, supplier#906010) AS supplierOrGroup#906038, coalesce(locationGroup#906023, plant#906011) AS locationOrGroup#906039]"];
30 [id="node30" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 18" tooltip="BroadcastHashJoin [coalesce(supplierGroup#906009, ), isnull(supplierGroup#906009), coalesce(supplier#906010, ), isnull(supplier#906010), coalesce(effectiveSubrange#906036, ), isnull(effectiveSubrange#906036), coalesce(plant#906011, ), isnull(plant#906011), coalesce(deliveryDateTime#906012, 1970-01-01 00:00:00), isnull(deliveryDateTime#906012)], [coalesce(supplierGroup#906022, ), isnull(supplierGroup#906022), coalesce(supplier#906017, ), isnull(supplier#906017), coalesce(effectiveSubrange#906037, ), isnull(effectiveSubrange#906037), coalesce(plant#906019, ), isnull(plant#906019), coalesce(deliveryDateTime#906020, 1970-01-01 00:00:00), isnull(deliveryDateTime#906020)], LeftOuter, BuildRight, false"];
}
31 [id="node31" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1" tooltip="AQEShuffleRead local"];
32 [id="node32" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 18<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 18<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 18<br>data size total (min, med, max (stageId: taskId))<br>8.2 KiB (352.0 B, 400.0 B, 648.0 B (stage 76158.0: task 185665))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>7 ms (0 ms, 0 ms, 0 ms (stage 76158.0: task 185669))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 7.5 KiB<br>number of partitions: 25<br>remote reqs duration: 1 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>7.5 KiB (356.0 B, 411.0 B, 497.0 B (stage 76158.0: task 185665))" tooltip="Exchange hashpartitioning(coalesce(supplierGroup#906009, ), isnull(supplierGroup#906009), coalesce(supplier#906010, ), isnull(supplier#906010), coalesce(effectiveSubrange#906036, ), isnull(effectiveSubrange#906036), coalesce(plant#906011, ), isnull(plant#906011), coalesce(deliveryDateTime#906012, 1970-01-01 00:00:00), isnull(deliveryDateTime#906012), 25), ENSURE_REQUIREMENTS, [plan_id=353541]"];
subgraph cluster33 {
isCluster="true";
id="cluster33";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n328 ms (0 ms, 1 ms, 33 ms (stage 76158.0: task 185665))";
tooltip="WholeStageCodegen (4)";
34 [id="node34" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, CASE WHEN isnotnull(supplyingPlant#906014) THEN productGroup#906015 ELSE subrange#906013 END AS effectiveSubrange#906036]"];
}
35 [id="node35" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 18<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 18<br>local bytes read total (min, med, max (stageId: taskId))<br>7.5 KiB (356.0 B, 409.0 B, 506.0 B (stage 76158.0: task 185665))<br>merged fetch fallback count: 0<br>local blocks read: 18<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 8.5 KiB<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 76158.0: task 185665))<br>remote bytes read: 0.0 B<br>number of partitions: 25<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 7.5 KiB" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353270]"];
subgraph cluster36 {
isCluster="true";
id="cluster36";
label="WholeStageCodegen (1)\n \nduration: 142 ms";
tooltip="WholeStageCodegen (1)";
37 [id="node37" labelType="html" label="<b>Filter</b><br><br>number of output rows: 18" tooltip="Filter ((size(productOrderSchedule#906016, true) > 0) AND isnotnull(productOrderSchedule#906016))"];
38 [id="node38" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 18<br>number of input batches: 1" tooltip="ColumnarToRow"];
}
39 [id="node39" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 140 ms<br>metadata time: 0 ms<br>size of files read: 7.2 KiB<br>number of output rows: 18" tooltip="FileScan parquet [supplierGroup#906009,supplier#906010,plant#906011,deliveryDateTime#906012,subrange#906013,supplyingPlant#906014,productGroup#906015,productOrderSchedule#906016] Batched: true, DataFilters: [(size(productOrderSchedule#906016, true) > 0), isnotnull(productOrderSchedule#906016)], Format: Parquet, Location: InMemoryFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanac..., PartitionFilters: [], PushedFilters: [IsNotNull(productOrderSchedule)], ReadSchema: struct<supplierGroup:string,supplier:string,plant:string,deliveryDateTime:timestamp,subrange:stri..."];
40 [id="node40" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 7 ms<br>time to collect: 16 ms<br>number of output rows: 18<br>data size: 2.0 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(coalesce(input[4, string, true], ), isnull(input[4, string, true]), coalesce(input[0, string, true], ), isnull(input[0, string, true]), coalesce(input[7, string, true], ), isnull(input[7, string, true]), coalesce(input[1, string, true], ), isnull(input[1, string, true]), coalesce(input[2, timestamp, true], 1970-01-01 00:00:00), isnull(input[2, timestamp, true])),false), [plan_id=354013]"];
41 [id="node41" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1" tooltip="AQEShuffleRead local"];
42 [id="node42" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 18<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 18<br>local bytes read: 0.0 B<br>merged fetch fallback count: 0<br>local blocks read: 0<br>remote merged chunks fetched: 0<br>remote blocks read: 18<br>data size total (min, med, max (stageId: taskId))<br>4.5 KiB (248.0 B, 256.0 B, 264.0 B (stage 76162.0: task 185719))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>7 ms (0 ms, 0 ms, 0 ms (stage 76162.0: task 185715))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time: 0 ms<br>remote bytes read: 4.4 KiB<br>number of partitions: 25<br>remote reqs duration: 1 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>4.4 KiB (240.0 B, 256.0 B, 261.0 B (stage 76162.0: task 185719))" tooltip="Exchange hashpartitioning(coalesce(supplierGroup#906022, ), isnull(supplierGroup#906022), coalesce(supplier#906017, ), isnull(supplier#906017), coalesce(effectiveSubrange#906037, ), isnull(effectiveSubrange#906037), coalesce(plant#906019, ), isnull(plant#906019), coalesce(deliveryDateTime#906020, 1970-01-01 00:00:00), isnull(deliveryDateTime#906020), 25), ENSURE_REQUIREMENTS, [plan_id=353889]"];
subgraph cluster43 {
isCluster="true";
id="cluster43";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n399 ms (0 ms, 1 ms, 40 ms (stage 76162.0: task 185719))";
tooltip="WholeStageCodegen (5)";
44 [id="node44" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, subrange#906018 AS effectiveSubrange#906037]"];
45 [id="node45" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 18" tooltip="BroadcastHashJoin [orderGroupingProfile#906021], [orderGroupingProfile#906028], LeftOuter, BuildRight, false"];
}
46 [id="node46" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 18<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 18<br>local bytes read total (min, med, max (stageId: taskId))<br>3.9 KiB (211.0 B, 230.0 B, 235.0 B (stage 76162.0: task 185719))<br>merged fetch fallback count: 0<br>local blocks read: 18<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 3.1 KiB<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 0 ms<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 76162.0: task 185719))<br>remote bytes read: 0.0 B<br>number of partitions: 25<br>remote reqs duration: 0 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written: 3.9 KiB" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353286]"];
subgraph cluster47 {
isCluster="true";
id="cluster47";
label="WholeStageCodegen (2)\n \nduration: 82 ms";
tooltip="WholeStageCodegen (2)";
48 [id="node48" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 18<br>number of input batches: 1" tooltip="ColumnarToRow"];
}
49 [id="node49" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 1<br>scan time: 80 ms<br>metadata time: 0 ms<br>size of files read: 3.8 KiB<br>number of output rows: 18" tooltip="FileScan parquet [supplier#906017,subrange#906018,plant#906019,deliverydatetime#906020,ordergroupingprofile#906021,supplierGroup#906022,locationGroup#906023] Batched: true, DataFilters: [], Format: Parquet, Location: InMemoryFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanac..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<supplier:string,subrange:string,plant:string,deliverydatetime:timestamp,ordergroupingprofi..."];
50 [id="node50" labelType="html" label="<b>BroadcastExchange</b><br><br>time to broadcast: 0 ms<br>time to build: 1 ms<br>time to collect: 106 ms<br>number of output rows: 6<br>data size: 2.0 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=353307]"];
51 [id="node51" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 6<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 6<br>local bytes read total (min, med, max (stageId: taskId))<br>370.0 B (121.0 B, 123.0 B, 126.0 B (stage 76160.0: task 185676))<br>merged fetch fallback count: 0<br>local blocks read: 3<br>remote merged chunks fetched: 0<br>remote blocks read: 3<br>data size total (min, med, max (stageId: taskId))<br>680.0 B (104.0 B, 112.0 B, 120.0 B (stage 76155.0: task 185658))<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time total (min, med, max (stageId: taskId))<br>2 ms (0 ms, 0 ms, 0 ms (stage 76155.0: task 185659))<br>remote merged bytes read: 0.0 B<br>local merged blocks fetched: 0<br>corrupt merged block chunks: 0<br>fetch wait time total (min, med, max (stageId: taskId))<br>0 ms (0 ms, 0 ms, 0 ms (stage 76160.0: task 185675))<br>remote bytes read: 384.0 B<br>number of partitions: 25<br>remote reqs duration: 1 ms<br>remote bytes read to disk: 0.0 B<br>shuffle bytes written total (min, med, max (stageId: taskId))<br>754.0 B (121.0 B, 126.0 B, 133.0 B (stage 76155.0: task 185660))" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353299]"];
subgraph cluster52 {
isCluster="true";
id="cluster52";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n794 ms (99 ms, 144 ms, 152 ms (stage 76155.0: task 185661))";
tooltip="WholeStageCodegen (3)";
53 [id="node53" labelType="html" label="<b>Filter</b><br><br>number of output rows: 6" tooltip="Filter isnotnull(orderGroupingProfile#906028)"];
54 [id="node54" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 6<br>number of input batches: 6" tooltip="ColumnarToRow"];
}
55 [id="node55" labelType="html" label="<b>Scan parquet </b><br><br>number of files read: 6<br>scan time total (min, med, max (stageId: taskId))<br>787 ms (97 ms, 142 ms, 152 ms (stage 76155.0: task 185661))<br>metadata time: 0 ms<br>size of files read: 41.3 KiB<br>number of output rows: 6" tooltip="FileScan parquet [orderGroupingProfile#906028,orderGroupCriteria#906030] Batched: true, DataFilters: [isnotnull(orderGroupingProfile#906028)], Format: Parquet, Location: PreparedDeltaFileIndex(1 paths)[hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20...., PartitionFilters: [], PushedFilters: [IsNotNull(orderGroupingProfile)], ReadSchema: struct<orderGroupingProfile:string,orderGroupCriteria:struct<supplier:boolean,supplierSubrange:bo..."];
1->0;
3->1;
4->3;
5->4;
6->5;
8->6;
9->8;
10->9;
11->10;
13->11;
14->13;
15->14;
16->15;
17->16;
19->17;
20->19;
22->20;
23->22;
24->23;
26->24;
27->26;
28->27;
29->28;
30->29;
31->30;
32->31;
34->32;
35->34;
37->35;
38->37;
39->38;
40->30;
41->40;
42->41;
44->42;
45->44;
46->45;
48->46;
49->48;
50->45;
51->50;
53->51;
54->53;
55->54;
}
== Physical Plan ==
AdaptiveSparkPlan (92)
+- == Final Plan ==
ResultQueryStage (88), Statistics(sizeInBytes=8.0 EiB)
+- CollectLimit (87)
+- * Project (86)
+- * Filter (85)
+- TableCacheQueryStage (84), Statistics(sizeInBytes=1760.0 B, rowCount=15)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (83)
+- == Final Plan ==
ResultQueryStage (52)
+- * SerializeFromObject (51)
+- MapPartitions (50)
+- DeserializeToObject (49)
+- ShuffleQueryStage (48), Statistics(sizeInBytes=1760.0 B, rowCount=15)
+- Exchange (47)
+- * Project (46)
+- ObjectHashAggregate (45)
+- AQEShuffleRead (44)
+- ShuffleQueryStage (43), Statistics(sizeInBytes=1480.0 B, rowCount=15)
+- Exchange (42)
+- ObjectHashAggregate (41)
+- * Project (40)
+- Window (39)
+- * Sort (38)
+- AQEShuffleRead (37)
+- ShuffleQueryStage (36), Statistics(sizeInBytes=2.6 KiB, rowCount=24)
+- Exchange (35)
+- * Project (34)
+- * Generate (33)
+- * Project (32)
+- * Project (31)
+- * BroadcastHashJoin LeftOuter BuildRight (30)
:- AQEShuffleRead (11)
: +- ShuffleQueryStage (10), Statistics(sizeInBytes=8.2 KiB, rowCount=18)
: +- Exchange (9)
: +- * Project (8)
: +- ShuffleQueryStage (7), Statistics(sizeInBytes=8.5 KiB, rowCount=18)
: +- Exchange (6)
: +- * Filter (5)
: +- * ColumnarToRow (4)
: +- Scan parquet (3)
+- BroadcastQueryStage (29), Statistics(sizeInBytes=2.0 MiB, rowCount=18)
+- BroadcastExchange (28)
+- AQEShuffleRead (27)
+- ShuffleQueryStage (26), Statistics(sizeInBytes=4.5 KiB, rowCount=18)
+- Exchange (25)
+- * Project (24)
+- * BroadcastHashJoin LeftOuter BuildRight (23)
:- ShuffleQueryStage (15), Statistics(sizeInBytes=3.1 KiB, rowCount=18)
: +- Exchange (14)
: +- * ColumnarToRow (13)
: +- Scan parquet (12)
+- BroadcastQueryStage (22), Statistics(sizeInBytes=2.0 MiB, rowCount=6)
+- BroadcastExchange (21)
+- ShuffleQueryStage (20), Statistics(sizeInBytes=680.0 B, rowCount=6)
+- Exchange (19)
+- * Filter (18)
+- * ColumnarToRow (17)
+- Scan parquet (16)
+- == Initial Plan ==
SerializeFromObject (82)
+- MapPartitions (81)
+- DeserializeToObject (80)
+- Exchange (79)
+- Project (78)
+- ObjectHashAggregate (77)
+- Exchange (76)
+- ObjectHashAggregate (75)
+- Project (74)
+- Window (73)
+- Sort (72)
+- Exchange (71)
+- Project (70)
+- Generate (69)
+- Project (68)
+- Project (67)
+- SortMergeJoin LeftOuter (66)
:- Sort (57)
: +- Exchange (56)
: +- Project (55)
: +- Exchange (54)
: +- Filter (53)
: +- Scan parquet (3)
+- Sort (65)
+- Exchange (64)
+- Project (63)
+- BroadcastHashJoin LeftOuter BuildRight (62)
:- Exchange (58)
: +- Scan parquet (12)
+- BroadcastExchange (61)
+- Exchange (60)
+- Filter (59)
+- Scan parquet (16)
+- == Initial Plan ==
CollectLimit (91)
+- Project (90)
+- Filter (89)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (83)
+- == Final Plan ==
ResultQueryStage (52)
+- * SerializeFromObject (51)
+- MapPartitions (50)
+- DeserializeToObject (49)
+- ShuffleQueryStage (48), Statistics(sizeInBytes=1760.0 B, rowCount=15)
+- Exchange (47)
+- * Project (46)
+- ObjectHashAggregate (45)
+- AQEShuffleRead (44)
+- ShuffleQueryStage (43), Statistics(sizeInBytes=1480.0 B, rowCount=15)
+- Exchange (42)
+- ObjectHashAggregate (41)
+- * Project (40)
+- Window (39)
+- * Sort (38)
+- AQEShuffleRead (37)
+- ShuffleQueryStage (36), Statistics(sizeInBytes=2.6 KiB, rowCount=24)
+- Exchange (35)
+- * Project (34)
+- * Generate (33)
+- * Project (32)
+- * Project (31)
+- * BroadcastHashJoin LeftOuter BuildRight (30)
:- AQEShuffleRead (11)
: +- ShuffleQueryStage (10), Statistics(sizeInBytes=8.2 KiB, rowCount=18)
: +- Exchange (9)
: +- * Project (8)
: +- ShuffleQueryStage (7), Statistics(sizeInBytes=8.5 KiB, rowCount=18)
: +- Exchange (6)
: +- * Filter (5)
: +- * ColumnarToRow (4)
: +- Scan parquet (3)
+- BroadcastQueryStage (29), Statistics(sizeInBytes=2.0 MiB, rowCount=18)
+- BroadcastExchange (28)
+- AQEShuffleRead (27)
+- ShuffleQueryStage (26), Statistics(sizeInBytes=4.5 KiB, rowCount=18)
+- Exchange (25)
+- * Project (24)
+- * BroadcastHashJoin LeftOuter BuildRight (23)
:- ShuffleQueryStage (15), Statistics(sizeInBytes=3.1 KiB, rowCount=18)
: +- Exchange (14)
: +- * ColumnarToRow (13)
: +- Scan parquet (12)
+- BroadcastQueryStage (22), Statistics(sizeInBytes=2.0 MiB, rowCount=6)
+- BroadcastExchange (21)
+- ShuffleQueryStage (20), Statistics(sizeInBytes=680.0 B, rowCount=6)
+- Exchange (19)
+- * Filter (18)
+- * ColumnarToRow (17)
+- Scan parquet (16)
+- == Initial Plan ==
SerializeFromObject (82)
+- MapPartitions (81)
+- DeserializeToObject (80)
+- Exchange (79)
+- Project (78)
+- ObjectHashAggregate (77)
+- Exchange (76)
+- ObjectHashAggregate (75)
+- Project (74)
+- Window (73)
+- Sort (72)
+- Exchange (71)
+- Project (70)
+- Generate (69)
+- Project (68)
+- Project (67)
+- SortMergeJoin LeftOuter (66)
:- Sort (57)
: +- Exchange (56)
: +- Project (55)
: +- Exchange (54)
: +- Filter (53)
: +- Scan parquet (3)
+- Sort (65)
+- Exchange (64)
+- Project (63)
+- BroadcastHashJoin LeftOuter BuildRight (62)
:- Exchange (58)
: +- Scan parquet (12)
+- BroadcastExchange (61)
+- Exchange (60)
+- Filter (59)
+- Scan parquet (16)
(1) InMemoryTableScan
Output [1]: [unresolvedDependencies#906185]
Arguments: [unresolvedDependencies#906185], [(size(unresolvedDependencies#906185, true) > 0)]
(2) InMemoryRelation
Arguments: [orderProposalId#906179L, plant#906180, previousOrderProposals#906181, nodeId#906182L, dependentOnNodeIds#906183, clusterId#906184L, unresolvedDependencies#906185], StorageLevel(disk, memory, 2 replicas)
(3) Scan parquet
Output [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
Batched: true
Location: InMemoryFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-order-qty-opt-service/out/grouping-worklist/10000002110]
PushedFilters: [IsNotNull(productOrderSchedule)]
ReadSchema: struct<supplierGroup:string,supplier:string,plant:string,deliveryDateTime:timestamp,subrange:string,supplyingPlant:string,productGroup:string,productOrderSchedule:array<struct<product:string,orderDateTime:timestamp,availabilityDateTime:timestamp,nextAvailabilityDateTime:timestamp,mrpController:string,sourceOfSupplyUuid:string,purchasingOrg:string,purchasingGroup:string,isFallbackOrderOnly:boolean>>>
(4) ColumnarToRow [codegen id : 1]
Input [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
(5) Filter [codegen id : 1]
Input [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
Condition : ((size(productOrderSchedule#906016, true) > 0) AND isnotnull(productOrderSchedule#906016))
(6) Exchange
Input [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353270]
(7) ShuffleQueryStage
Output [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
Arguments: 0
(8) Project [codegen id : 4]
Output [6]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, CASE WHEN isnotnull(supplyingPlant#906014) THEN productGroup#906015 ELSE subrange#906013 END AS effectiveSubrange#906036]
Input [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
(9) Exchange
Input [6]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036]
Arguments: hashpartitioning(coalesce(supplierGroup#906009, ), isnull(supplierGroup#906009), coalesce(supplier#906010, ), isnull(supplier#906010), coalesce(effectiveSubrange#906036, ), isnull(effectiveSubrange#906036), coalesce(plant#906011, ), isnull(plant#906011), coalesce(deliveryDateTime#906012, 1970-01-01 00:00:00), isnull(deliveryDateTime#906012), 25), ENSURE_REQUIREMENTS, [plan_id=353541]
(10) ShuffleQueryStage
Output [6]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036]
Arguments: 3
(11) AQEShuffleRead
Input [6]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036]
Arguments: local
(12) Scan parquet
Output [7]: [supplier#906017, subrange#906018, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023]
Batched: true
Location: InMemoryFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-param-determination-service/out/10000002110/SupplyNetworkProfiles/assignments]
ReadSchema: struct<supplier:string,subrange:string,plant:string,deliverydatetime:timestamp,ordergroupingprofile:string,supplierGroup:string,locationGroup:string>
(13) ColumnarToRow [codegen id : 2]
Input [7]: [supplier#906017, subrange#906018, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023]
(14) Exchange
Input [7]: [supplier#906017, subrange#906018, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353286]
(15) ShuffleQueryStage
Output [7]: [supplier#906017, subrange#906018, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023]
Arguments: 1
(16) Scan parquet
Output [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Batched: true
Location: PreparedDeltaFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-dl-stream-service/prp/order-grouping-profile]
PushedFilters: [IsNotNull(orderGroupingProfile)]
ReadSchema: struct<orderGroupingProfile:string,orderGroupCriteria:struct<supplier:boolean,supplierSubrange:boolean,receivingLocation:boolean,deliveryDate:boolean,orderDate:boolean,purchasingOrg:boolean,purchasingGroup:boolean,mrpController:boolean>>
(17) ColumnarToRow [codegen id : 3]
Input [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
(18) Filter [codegen id : 3]
Input [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Condition : isnotnull(orderGroupingProfile#906028)
(19) Exchange
Input [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353299]
(20) ShuffleQueryStage
Output [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Arguments: 2
(21) BroadcastExchange
Input [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=353307]
(22) BroadcastQueryStage
Output [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Arguments: 4
(23) BroadcastHashJoin [codegen id : 5]
Left keys [1]: [orderGroupingProfile#906021]
Right keys [1]: [orderGroupingProfile#906028]
Join type: LeftOuter
Join condition: None
(24) Project [codegen id : 5]
Output [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, subrange#906018 AS effectiveSubrange#906037]
Input [9]: [supplier#906017, subrange#906018, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupingProfile#906028, orderGroupCriteria#906030]
(25) Exchange
Input [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
Arguments: hashpartitioning(coalesce(supplierGroup#906022, ), isnull(supplierGroup#906022), coalesce(supplier#906017, ), isnull(supplier#906017), coalesce(effectiveSubrange#906037, ), isnull(effectiveSubrange#906037), coalesce(plant#906019, ), isnull(plant#906019), coalesce(deliveryDateTime#906020, 1970-01-01 00:00:00), isnull(deliveryDateTime#906020), 25), ENSURE_REQUIREMENTS, [plan_id=353889]
(26) ShuffleQueryStage
Output [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
Arguments: 5
(27) AQEShuffleRead
Input [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
Arguments: local
(28) BroadcastExchange
Input [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
Arguments: HashedRelationBroadcastMode(List(coalesce(input[4, string, true], ), isnull(input[4, string, true]), coalesce(input[0, string, true], ), isnull(input[0, string, true]), coalesce(input[7, string, true], ), isnull(input[7, string, true]), coalesce(input[1, string, true], ), isnull(input[1, string, true]), coalesce(input[2, timestamp, true], 1970-01-01 00:00:00), isnull(input[2, timestamp, true])),false), [plan_id=354013]
(29) BroadcastQueryStage
Output [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
Arguments: 6
(30) BroadcastHashJoin [codegen id : 6]
Left keys [10]: [coalesce(supplierGroup#906009, ), isnull(supplierGroup#906009), coalesce(supplier#906010, ), isnull(supplier#906010), coalesce(effectiveSubrange#906036, ), isnull(effectiveSubrange#906036), coalesce(plant#906011, ), isnull(plant#906011), coalesce(deliveryDateTime#906012, 1970-01-01 00:00:00), isnull(deliveryDateTime#906012)]
Right keys [10]: [coalesce(supplierGroup#906022, ), isnull(supplierGroup#906022), coalesce(supplier#906017, ), isnull(supplier#906017), coalesce(effectiveSubrange#906037, ), isnull(effectiveSubrange#906037), coalesce(plant#906019, ), isnull(plant#906019), coalesce(deliveryDateTime#906020, 1970-01-01 00:00:00), isnull(deliveryDateTime#906020)]
Join type: LeftOuter
Join condition: None
(31) Project [codegen id : 6]
Output [8]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, CASE WHEN isnull(orderGroupCriteria#906030) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#906030 END AS orderGroupCriteria#906049, orderGroupingProfile#906021, coalesce(supplierGroup#906009, supplier#906010) AS supplierOrGroup#906038, coalesce(locationGroup#906023, plant#906011) AS locationOrGroup#906039]
Input [14]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
(32) Project [codegen id : 6]
Output [14]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, orderGroupCriteria#906049.supplierSubrange AS _extract_supplierSubrange#906186, orderGroupCriteria#906049.mrpController AS _extract_mrpController#906187, orderGroupCriteria#906049.purchasingOrg AS _extract_purchasingOrg#906188, orderGroupCriteria#906049.orderDate AS _extract_orderDate#906189, orderGroupCriteria#906049.deliveryDate AS _extract_deliveryDate#906190, orderGroupCriteria#906049.supplier AS _extract_supplier#906191, orderGroupCriteria#906049.purchasingGroup AS _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039]
Input [8]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, orderGroupCriteria#906049, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039]
(33) Generate [codegen id : 6]
Input [14]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, _extract_supplierSubrange#906186, _extract_mrpController#906187, _extract_purchasingOrg#906188, _extract_orderDate#906189, _extract_deliveryDate#906190, _extract_supplier#906191, _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039]
Arguments: explode(productOrderSchedule#906016), [plant#906011, deliveryDateTime#906012, effectiveSubrange#906036, _extract_supplierSubrange#906186, _extract_mrpController#906187, _extract_purchasingOrg#906188, _extract_orderDate#906189, _extract_deliveryDate#906190, _extract_supplier#906191, _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039], false, [productOrderScheduleExploded#906061]
(34) Project [codegen id : 6]
Output [5]: [plant#906011, productOrderScheduleExploded#906061.product AS product#906062, productOrderScheduleExploded#906061.orderDateTime AS orderDateTime#906063, productOrderScheduleExploded#906061.availabilityDateTime AS availabilityDateTime#906064, xxhash64(CASE WHEN (_extract_supplierSubrange#906186 <=> true) THEN effectiveSubrange#906036 END, orderGroupingProfile#906021, CASE WHEN (_extract_mrpController#906187 <=> true) THEN productOrderScheduleExploded#906061.mrpController END, CASE WHEN (_extract_purchasingOrg#906188 <=> true) THEN productOrderScheduleExploded#906061.purchasingOrg END, CASE WHEN (_extract_orderDate#906189 <=> true) THEN productOrderScheduleExploded#906061.orderDateTime END, CASE WHEN (_extract_deliveryDate#906190 <=> true) THEN deliveryDateTime#906012 END, CASE WHEN (_extract_supplier#906191 <=> true) THEN supplierOrGroup#906038 END, locationOrGroup#906039, CASE WHEN (_extract_purchasingGroup#906192 <=> true) THEN productOrderScheduleExploded#906061.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#906036) AND (_extract_supplierSubrange#906186 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#906021) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.mrpController) AND (_extract_mrpController#906187 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.purchasingOrg) AND (_extract_purchasingOrg#906188 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.orderDateTime) AND (_extract_orderDate#906189 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#906012) AND (_extract_deliveryDate#906190 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#906038) AND (_extract_supplier#906191 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#906039) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.purchasingGroup) AND (_extract_purchasingGroup#906192 <=> true)) THEN 256 ELSE 0 END), 10000002110, 42) AS orderProposalId#906097L]
Input [14]: [plant#906011, deliveryDateTime#906012, effectiveSubrange#906036, _extract_supplierSubrange#906186, _extract_mrpController#906187, _extract_purchasingOrg#906188, _extract_orderDate#906189, _extract_deliveryDate#906190, _extract_supplier#906191, _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039, productOrderScheduleExploded#906061]
(35) Exchange
Input [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: hashpartitioning(product#906062, plant#906011, 25), ENSURE_REQUIREMENTS, [plan_id=354140]
(36) ShuffleQueryStage
Output [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: 7
(37) AQEShuffleRead
Input [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: coalesced
(38) Sort [codegen id : 7]
Input [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: [product#906062 ASC NULLS FIRST, plant#906011 ASC NULLS FIRST, availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST], false, 0
(39) Window
Input [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: [lag(orderProposalId#906097L, -1, null) windowspecdefinition(product#906062, plant#906011, availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#906126L], [product#906062, plant#906011], [availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST]
(40) Project [codegen id : 8]
Output [3]: [plant#906011, orderProposalId#906097L, previousOrderProposal#906126L]
Input [6]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L, previousOrderProposal#906126L]
(41) ObjectHashAggregate
Input [3]: [plant#906011, orderProposalId#906097L, previousOrderProposal#906126L]
Keys [1]: [orderProposalId#906097L]
Functions [2]: [partial_min(plant#906011), partial_collect_set(previousOrderProposal#906126L, 0, 0)]
Aggregate Attributes [2]: [min#906450, buf#906451]
Results [3]: [orderProposalId#906097L, min#906452, buf#906453]
(42) Exchange
Input [3]: [orderProposalId#906097L, min#906452, buf#906453]
Arguments: hashpartitioning(orderProposalId#906097L, 25), ENSURE_REQUIREMENTS, [plan_id=354238]
(43) ShuffleQueryStage
Output [3]: [orderProposalId#906097L, min#906452, buf#906453]
Arguments: 8
(44) AQEShuffleRead
Input [3]: [orderProposalId#906097L, min#906452, buf#906453]
Arguments: coalesced
(45) ObjectHashAggregate
Input [3]: [orderProposalId#906097L, min#906452, buf#906453]
Keys [1]: [orderProposalId#906097L]
Functions [2]: [min(plant#906011), collect_set(previousOrderProposal#906126L, 0, 0)]
Aggregate Attributes [2]: [min(plant#906011)#906149, collect_set(previousOrderProposal#906126L, 0, 0)#906150]
Results [4]: [orderProposalId#906097L, min(plant#906011)#906149 AS plant#906127, collect_set(previousOrderProposal#906126L, 0, 0)#906150 AS previousOrderProposals#906128, orderProposalId#906097L AS nodeId#906151L]
(46) Project [codegen id : 9]
Output [5]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, previousOrderProposals#906128 AS dependentOnNodeIds#906152]
Input [4]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L]
(47) Exchange
Input [5]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, dependentOnNodeIds#906152]
Arguments: hashpartitioning(plant#906127, 25), REPARTITION_BY_COL, [plan_id=354290]
(48) ShuffleQueryStage
Output [5]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, dependentOnNodeIds#906152]
Arguments: 9
(49) DeserializeToObject
Input [5]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, dependentOnNodeIds#906152]
Arguments: createexternalrow(static_invoke(java.lang.Long.valueOf(orderProposalId#906097L)), invoke(plant#906127.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#906128, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#906151L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#906152, Some(class scala.collection.mutable.ArraySeq)), StructField(orderProposalId,LongType,false), StructField(plant,StringType,true), StructField(previousOrderProposals,ArrayType(LongType,false),false), StructField(nodeId,LongType,false), StructField(dependentOnNodeIds,ArrayType(LongType,false),false)), obj#906163: org.apache.spark.sql.Row
(50) MapPartitions
Input [1]: [obj#906163]
Arguments: org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@f9c64cd, obj#906171: org.apache.spark.sql.Row
(51) SerializeFromObject [codegen id : 10]
Input [1]: [obj#906171]
Arguments: [assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 0, orderProposalId), LongType, ObjectType(class java.lang.Long)).longValue())) AS orderProposalId#906179L, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(1))) null else static_invoke(UTF8String.fromString(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 1, plant), StringType, ObjectType(class java.lang.String)))) AS plant#906180, if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -1), assertnotnull(invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -1), LongType, ObjectType(class java.lang.Long)).longValue())), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object)), None) AS previousOrderProposals#906181, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#906182L, if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -2), assertnotnull(invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -2), LongType, ObjectType(class java.lang.Long)).longValue())), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object)), None) AS dependentOnNodeIds#906183, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(5))) null else invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 5, clusterId), LongType, ObjectType(class java.lang.Long)).longValue()) AS clusterId#906184L, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(6))) null else if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -3), invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -3), LongType, ObjectType(class java.lang.Long)).longValue()), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object)), None) AS unresolvedDependencies#906185]
(52) ResultQueryStage
Output [7]: [orderProposalId#906179L, plant#906180, previousOrderProposals#906181, nodeId#906182L, dependentOnNodeIds#906183, clusterId#906184L, unresolvedDependencies#906185]
Arguments: 10
(53) Filter
Input [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
Condition : ((size(productOrderSchedule#906016, true) > 0) AND isnotnull(productOrderSchedule#906016))
(54) Exchange
Input [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353148]
(55) Project
Output [6]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, CASE WHEN isnotnull(supplyingPlant#906014) THEN productGroup#906015 ELSE subrange#906013 END AS effectiveSubrange#906036]
Input [8]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, subrange#906013, supplyingPlant#906014, productGroup#906015, productOrderSchedule#906016]
(56) Exchange
Input [6]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036]
Arguments: hashpartitioning(coalesce(supplierGroup#906009, ), isnull(supplierGroup#906009), coalesce(supplier#906010, ), isnull(supplier#906010), coalesce(effectiveSubrange#906036, ), isnull(effectiveSubrange#906036), coalesce(plant#906011, ), isnull(plant#906011), coalesce(deliveryDateTime#906012, 1970-01-01 00:00:00), isnull(deliveryDateTime#906012), 25), ENSURE_REQUIREMENTS, [plan_id=353172]
(57) Sort
Input [6]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036]
Arguments: [coalesce(supplierGroup#906009, ) ASC NULLS FIRST, isnull(supplierGroup#906009) ASC NULLS FIRST, coalesce(supplier#906010, ) ASC NULLS FIRST, isnull(supplier#906010) ASC NULLS FIRST, coalesce(effectiveSubrange#906036, ) ASC NULLS FIRST, isnull(effectiveSubrange#906036) ASC NULLS FIRST, coalesce(plant#906011, ) ASC NULLS FIRST, isnull(plant#906011) ASC NULLS FIRST, coalesce(deliveryDateTime#906012, 1970-01-01 00:00:00) ASC NULLS FIRST, isnull(deliveryDateTime#906012) ASC NULLS FIRST], false, 0
(58) Exchange
Input [7]: [supplier#906017, subrange#906018, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353126]
(59) Filter
Input [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Condition : isnotnull(orderGroupingProfile#906028)
(60) Exchange
Input [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=353150]
(61) BroadcastExchange
Input [2]: [orderGroupingProfile#906028, orderGroupCriteria#906030]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=353167]
(62) BroadcastHashJoin
Left keys [1]: [orderGroupingProfile#906021]
Right keys [1]: [orderGroupingProfile#906028]
Join type: LeftOuter
Join condition: None
(63) Project
Output [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, subrange#906018 AS effectiveSubrange#906037]
Input [9]: [supplier#906017, subrange#906018, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupingProfile#906028, orderGroupCriteria#906030]
(64) Exchange
Input [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
Arguments: hashpartitioning(coalesce(supplierGroup#906022, ), isnull(supplierGroup#906022), coalesce(supplier#906017, ), isnull(supplier#906017), coalesce(effectiveSubrange#906037, ), isnull(effectiveSubrange#906037), coalesce(plant#906019, ), isnull(plant#906019), coalesce(deliveryDateTime#906020, 1970-01-01 00:00:00), isnull(deliveryDateTime#906020), 25), ENSURE_REQUIREMENTS, [plan_id=353173]
(65) Sort
Input [8]: [supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
Arguments: [coalesce(supplierGroup#906022, ) ASC NULLS FIRST, isnull(supplierGroup#906022) ASC NULLS FIRST, coalesce(supplier#906017, ) ASC NULLS FIRST, isnull(supplier#906017) ASC NULLS FIRST, coalesce(effectiveSubrange#906037, ) ASC NULLS FIRST, isnull(effectiveSubrange#906037) ASC NULLS FIRST, coalesce(plant#906019, ) ASC NULLS FIRST, isnull(plant#906019) ASC NULLS FIRST, coalesce(deliveryDateTime#906020, 1970-01-01 00:00:00) ASC NULLS FIRST, isnull(deliveryDateTime#906020) ASC NULLS FIRST], false, 0
(66) SortMergeJoin
Left keys [10]: [coalesce(supplierGroup#906009, ), isnull(supplierGroup#906009), coalesce(supplier#906010, ), isnull(supplier#906010), coalesce(effectiveSubrange#906036, ), isnull(effectiveSubrange#906036), coalesce(plant#906011, ), isnull(plant#906011), coalesce(deliveryDateTime#906012, 1970-01-01 00:00:00), isnull(deliveryDateTime#906012)]
Right keys [10]: [coalesce(supplierGroup#906022, ), isnull(supplierGroup#906022), coalesce(supplier#906017, ), isnull(supplier#906017), coalesce(effectiveSubrange#906037, ), isnull(effectiveSubrange#906037), coalesce(plant#906019, ), isnull(plant#906019), coalesce(deliveryDateTime#906020, 1970-01-01 00:00:00), isnull(deliveryDateTime#906020)]
Join type: LeftOuter
Join condition: None
(67) Project
Output [8]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, CASE WHEN isnull(orderGroupCriteria#906030) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#906030 END AS orderGroupCriteria#906049, orderGroupingProfile#906021, coalesce(supplierGroup#906009, supplier#906010) AS supplierOrGroup#906038, coalesce(locationGroup#906023, plant#906011) AS locationOrGroup#906039]
Input [14]: [supplierGroup#906009, supplier#906010, plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, supplier#906017, plant#906019, deliverydatetime#906020, ordergroupingprofile#906021, supplierGroup#906022, locationGroup#906023, orderGroupCriteria#906030, effectiveSubrange#906037]
(68) Project
Output [14]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, orderGroupCriteria#906049.supplierSubrange AS _extract_supplierSubrange#906186, orderGroupCriteria#906049.mrpController AS _extract_mrpController#906187, orderGroupCriteria#906049.purchasingOrg AS _extract_purchasingOrg#906188, orderGroupCriteria#906049.orderDate AS _extract_orderDate#906189, orderGroupCriteria#906049.deliveryDate AS _extract_deliveryDate#906190, orderGroupCriteria#906049.supplier AS _extract_supplier#906191, orderGroupCriteria#906049.purchasingGroup AS _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039]
Input [8]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, orderGroupCriteria#906049, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039]
(69) Generate
Input [14]: [plant#906011, deliveryDateTime#906012, productOrderSchedule#906016, effectiveSubrange#906036, _extract_supplierSubrange#906186, _extract_mrpController#906187, _extract_purchasingOrg#906188, _extract_orderDate#906189, _extract_deliveryDate#906190, _extract_supplier#906191, _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039]
Arguments: explode(productOrderSchedule#906016), [plant#906011, deliveryDateTime#906012, effectiveSubrange#906036, _extract_supplierSubrange#906186, _extract_mrpController#906187, _extract_purchasingOrg#906188, _extract_orderDate#906189, _extract_deliveryDate#906190, _extract_supplier#906191, _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039], false, [productOrderScheduleExploded#906061]
(70) Project
Output [5]: [plant#906011, productOrderScheduleExploded#906061.product AS product#906062, productOrderScheduleExploded#906061.orderDateTime AS orderDateTime#906063, productOrderScheduleExploded#906061.availabilityDateTime AS availabilityDateTime#906064, xxhash64(CASE WHEN (_extract_supplierSubrange#906186 <=> true) THEN effectiveSubrange#906036 END, orderGroupingProfile#906021, CASE WHEN (_extract_mrpController#906187 <=> true) THEN productOrderScheduleExploded#906061.mrpController END, CASE WHEN (_extract_purchasingOrg#906188 <=> true) THEN productOrderScheduleExploded#906061.purchasingOrg END, CASE WHEN (_extract_orderDate#906189 <=> true) THEN productOrderScheduleExploded#906061.orderDateTime END, CASE WHEN (_extract_deliveryDate#906190 <=> true) THEN deliveryDateTime#906012 END, CASE WHEN (_extract_supplier#906191 <=> true) THEN supplierOrGroup#906038 END, locationOrGroup#906039, CASE WHEN (_extract_purchasingGroup#906192 <=> true) THEN productOrderScheduleExploded#906061.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#906036) AND (_extract_supplierSubrange#906186 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#906021) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.mrpController) AND (_extract_mrpController#906187 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.purchasingOrg) AND (_extract_purchasingOrg#906188 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.orderDateTime) AND (_extract_orderDate#906189 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#906012) AND (_extract_deliveryDate#906190 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#906038) AND (_extract_supplier#906191 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#906039) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#906061.purchasingGroup) AND (_extract_purchasingGroup#906192 <=> true)) THEN 256 ELSE 0 END), 10000002110, 42) AS orderProposalId#906097L]
Input [14]: [plant#906011, deliveryDateTime#906012, effectiveSubrange#906036, _extract_supplierSubrange#906186, _extract_mrpController#906187, _extract_purchasingOrg#906188, _extract_orderDate#906189, _extract_deliveryDate#906190, _extract_supplier#906191, _extract_purchasingGroup#906192, orderGroupingProfile#906021, supplierOrGroup#906038, locationOrGroup#906039, productOrderScheduleExploded#906061]
(71) Exchange
Input [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: hashpartitioning(product#906062, plant#906011, 25), ENSURE_REQUIREMENTS, [plan_id=353182]
(72) Sort
Input [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: [product#906062 ASC NULLS FIRST, plant#906011 ASC NULLS FIRST, availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST], false, 0
(73) Window
Input [5]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L]
Arguments: [lag(orderProposalId#906097L, -1, null) windowspecdefinition(product#906062, plant#906011, availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#906126L], [product#906062, plant#906011], [availabilityDateTime#906064 ASC NULLS FIRST, orderDateTime#906063 ASC NULLS FIRST, orderProposalId#906097L ASC NULLS FIRST]
(74) Project
Output [3]: [plant#906011, orderProposalId#906097L, previousOrderProposal#906126L]
Input [6]: [plant#906011, product#906062, orderDateTime#906063, availabilityDateTime#906064, orderProposalId#906097L, previousOrderProposal#906126L]
(75) ObjectHashAggregate
Input [3]: [plant#906011, orderProposalId#906097L, previousOrderProposal#906126L]
Keys [1]: [orderProposalId#906097L]
Functions [2]: [partial_min(plant#906011), partial_collect_set(previousOrderProposal#906126L, 0, 0)]
Aggregate Attributes [2]: [min#906450, buf#906451]
Results [3]: [orderProposalId#906097L, min#906452, buf#906453]
(76) Exchange
Input [3]: [orderProposalId#906097L, min#906452, buf#906453]
Arguments: hashpartitioning(orderProposalId#906097L, 25), ENSURE_REQUIREMENTS, [plan_id=353188]
(77) ObjectHashAggregate
Input [3]: [orderProposalId#906097L, min#906452, buf#906453]
Keys [1]: [orderProposalId#906097L]
Functions [2]: [min(plant#906011), collect_set(previousOrderProposal#906126L, 0, 0)]
Aggregate Attributes [2]: [min(plant#906011)#906149, collect_set(previousOrderProposal#906126L, 0, 0)#906150]
Results [4]: [orderProposalId#906097L, min(plant#906011)#906149 AS plant#906127, collect_set(previousOrderProposal#906126L, 0, 0)#906150 AS previousOrderProposals#906128, orderProposalId#906097L AS nodeId#906151L]
(78) Project
Output [5]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, previousOrderProposals#906128 AS dependentOnNodeIds#906152]
Input [4]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L]
(79) Exchange
Input [5]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, dependentOnNodeIds#906152]
Arguments: hashpartitioning(plant#906127, 25), REPARTITION_BY_COL, [plan_id=353191]
(80) DeserializeToObject
Input [5]: [orderProposalId#906097L, plant#906127, previousOrderProposals#906128, nodeId#906151L, dependentOnNodeIds#906152]
Arguments: createexternalrow(static_invoke(java.lang.Long.valueOf(orderProposalId#906097L)), invoke(plant#906127.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#906128, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#906151L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#906152, Some(class scala.collection.mutable.ArraySeq)), StructField(orderProposalId,LongType,false), StructField(plant,StringType,true), StructField(previousOrderProposals,ArrayType(LongType,false),false), StructField(nodeId,LongType,false), StructField(dependentOnNodeIds,ArrayType(LongType,false),false)), obj#906163: org.apache.spark.sql.Row
(81) MapPartitions
Input [1]: [obj#906163]
Arguments: org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@f9c64cd, obj#906171: org.apache.spark.sql.Row
(82) SerializeFromObject
Input [1]: [obj#906171]
Arguments: [assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 0, orderProposalId), LongType, ObjectType(class java.lang.Long)).longValue())) AS orderProposalId#906179L, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(1))) null else static_invoke(UTF8String.fromString(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 1, plant), StringType, ObjectType(class java.lang.String)))) AS plant#906180, if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -1), assertnotnull(invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -1), LongType, ObjectType(class java.lang.Long)).longValue())), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 2, previousOrderProposals), ArrayType(LongType,false), ObjectType(class java.lang.Object)), None) AS previousOrderProposals#906181, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#906182L, if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -2), assertnotnull(invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -2), LongType, ObjectType(class java.lang.Long)).longValue())), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 4, dependentOnNodeIds), ArrayType(LongType,false), ObjectType(class java.lang.Object)), None) AS dependentOnNodeIds#906183, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(5))) null else invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 5, clusterId), LongType, ObjectType(class java.lang.Long)).longValue()) AS clusterId#906184L, if (invoke(assertnotnull(input[0, org.apache.spark.sql.Row, true]).isNullAt(6))) null else if (invoke(class [J.isInstance(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object))))) static_invoke(ArrayData.toArrayData(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object)))) else mapobjects(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -3), invoke(validateexternaltype(lambdavariable(MapObject, ObjectType(class java.lang.Object), true, -3), LongType, ObjectType(class java.lang.Long)).longValue()), validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 6, unresolvedDependencies), ArrayType(LongType,true), ObjectType(class java.lang.Object)), None) AS unresolvedDependencies#906185]
(83) AdaptiveSparkPlan
Output [7]: [orderProposalId#906179L, plant#906180, previousOrderProposals#906181, nodeId#906182L, dependentOnNodeIds#906183, clusterId#906184L, unresolvedDependencies#906185]
Arguments: isFinalPlan=true
(84) TableCacheQueryStage
Output [1]: [unresolvedDependencies#906185]
Arguments: 0
(85) Filter [codegen id : 1]
Input [1]: [unresolvedDependencies#906185]
Condition : (size(unresolvedDependencies#906185, true) > 0)
(86) Project [codegen id : 1]
Output: []
Input [1]: [unresolvedDependencies#906185]
(87) CollectLimit
Input: []
Arguments: 1
(88) ResultQueryStage
Output: []
Arguments: 1
(89) Filter
Input [1]: [unresolvedDependencies#906185]
Condition : (size(unresolvedDependencies#906185, true) > 0)
(90) Project
Output: []
Input [1]: [unresolvedDependencies#906185]
(91) CollectLimit
Input: []
Arguments: 1
(92) AdaptiveSparkPlan
Output: []
Arguments: isFinalPlan=true