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))\n19 ms (0 ms, 0 ms, 4 ms (stage 84233.0: task 201872))";
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#993656, true) > 0)"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 25" tooltip="InMemoryTableScan [unresolvedDependencies#993656], [(size(unresolvedDependencies#993656, 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))\n47 ms (0 ms, 1 ms, 8 ms (stage 84227.0: task 201852))";
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#993650L, 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#993651, 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#993652, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#993653L, 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#993654, 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#993655L, 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#993656]"];
}
9 [id="node9" labelType="html" label="<br><b>MapPartitions</b><br><br>" tooltip="MapPartitions org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@5445319e, obj#993642: 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#993568L)), invoke(plant#993598.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#993599, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#993622L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#993623, 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#993634: org.apache.spark.sql.Row"];
11 [id="node11" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 25<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 25<br>local bytes read total (min, med, max (stageId: taskId))<br>1221.0 B (288.0 B, 442.0 B, 491.0 B (stage 84227.0: task 201844))<br>merged fetch fallback count: 0<br>local blocks read: 3<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 3.0 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 84227.0: task 201843))<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: 1221.0 B" tooltip="Exchange hashpartitioning(plant#993598, 25), REPARTITION_BY_COL, [plan_id=386549]"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (9)\n \nduration: 31 ms";
tooltip="WholeStageCodegen (9)";
13 [id="node13" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, previousOrderProposals#993599 AS dependentOnNodeIds#993623]"];
}
14 [id="node14" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 25<br>time in aggregation build: 94 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[orderProposalId#993568L], functions=[min(plant#993482), collect_set(previousOrderProposal#993597L, 0, 0)])"];
15 [id="node15" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 3.0 KiB<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
16 [id="node16" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 25<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 25<br>local bytes read: 2.9 KiB<br>merged fetch fallback count: 0<br>local blocks read: 16<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 2.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: 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: 2.9 KiB" tooltip="Exchange hashpartitioning(orderProposalId#993568L, 25), ENSURE_REQUIREMENTS, [plan_id=386497]"];
17 [id="node17" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 25<br>time in aggregation build: 101 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[orderProposalId#993568L], functions=[partial_min(plant#993482), partial_collect_set(previousOrderProposal#993597L, 0, 0)])"];
subgraph cluster18 {
isCluster="true";
id="cluster18";
label="WholeStageCodegen (8)\n \nduration: 101 ms";
tooltip="WholeStageCodegen (8)";
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#993482, orderProposalId#993568L, previousOrderProposal#993597L]"];
}
20 [id="node20" labelType="html" label="<b>Window</b><br><br>spill size: 0.0 B" tooltip="Window [lag(orderProposalId#993568L, -1, null) windowspecdefinition(product#993533, plant#993482, availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#993597L], [product#993533, plant#993482], [availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (7)\n \nduration: 326 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#993533 ASC NULLS FIRST, plant#993482 ASC NULLS FIRST, availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST], false, 0"];
}
23 [id="node23" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 8.0 KiB<br>number of coalesced partitions: 1" tooltip="AQEShuffleRead coalesced"];
24 [id="node24" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 170<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 170<br>local bytes read: 7.6 KiB<br>merged fetch fallback count: 0<br>local blocks read: 20<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 18.6 KiB<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 1 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: 7.6 KiB" tooltip="Exchange hashpartitioning(product#993533, plant#993482, 25), ENSURE_REQUIREMENTS, [plan_id=386399]"];
subgraph cluster25 {
isCluster="true";
id="cluster25";
label="WholeStageCodegen (6)\n \nduration: 40 ms";
tooltip="WholeStageCodegen (6)";
26 [id="node26" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#993482, productOrderScheduleExploded#993532.product AS product#993533, productOrderScheduleExploded#993532.orderDateTime AS orderDateTime#993534, productOrderScheduleExploded#993532.availabilityDateTime AS availabilityDateTime#993535, xxhash64(CASE WHEN (_extract_supplierSubrange#993657 <=> true) THEN effectiveSubrange#993507 END, orderGroupingProfile#993492, CASE WHEN (_extract_mrpController#993658 <=> true) THEN productOrderScheduleExploded#993532.mrpController END, CASE WHEN (_extract_purchasingOrg#993659 <=> true) THEN productOrderScheduleExploded#993532.purchasingOrg END, CASE WHEN (_extract_orderDate#993660 <=> true) THEN productOrderScheduleExploded#993532.orderDateTime END, CASE WHEN (_extract_deliveryDate#993661 <=> true) THEN deliveryDateTime#993483 END, CASE WHEN (_extract_supplier#993662 <=> true) THEN supplierOrGroup#993509 END, locationOrGroup#993510, CASE WHEN (_extract_purchasingGroup#993663 <=> true) THEN productOrderScheduleExploded#993532.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#993507) AND (_extract_supplierSubrange#993657 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#993492) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.mrpController) AND (_extract_mrpController#993658 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.purchasingOrg) AND (_extract_purchasingOrg#993659 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.orderDateTime) AND (_extract_orderDate#993660 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#993483) AND (_extract_deliveryDate#993661 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#993509) AND (_extract_supplier#993662 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#993510) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.purchasingGroup) AND (_extract_purchasingGroup#993663 <=> true)) THEN 256 ELSE 0 END), 10000002111, 42) AS orderProposalId#993568L]"];
27 [id="node27" labelType="html" label="<b>Generate</b><br><br>number of output rows: 170" tooltip="Generate explode(productOrderSchedule#993487), [plant#993482, deliveryDateTime#993483, effectiveSubrange#993507, _extract_supplierSubrange#993657, _extract_mrpController#993658, _extract_purchasingOrg#993659, _extract_orderDate#993660, _extract_deliveryDate#993661, _extract_supplier#993662, _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510], false, [productOrderScheduleExploded#993532]"];
28 [id="node28" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, orderGroupCriteria#993520.supplierSubrange AS _extract_supplierSubrange#993657, orderGroupCriteria#993520.mrpController AS _extract_mrpController#993658, orderGroupCriteria#993520.purchasingOrg AS _extract_purchasingOrg#993659, orderGroupCriteria#993520.orderDate AS _extract_orderDate#993660, orderGroupCriteria#993520.deliveryDate AS _extract_deliveryDate#993661, orderGroupCriteria#993520.supplier AS _extract_supplier#993662, orderGroupCriteria#993520.purchasingGroup AS _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510]"];
29 [id="node29" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, CASE WHEN isnull(orderGroupCriteria#993501) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#993501 END AS orderGroupCriteria#993520, orderGroupingProfile#993492, coalesce(supplierGroup#993480, supplier#993481) AS supplierOrGroup#993509, coalesce(locationGroup#993494, plant#993482) AS locationOrGroup#993510]"];
30 [id="node30" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 40" tooltip="BroadcastHashJoin [coalesce(supplierGroup#993480, ), isnull(supplierGroup#993480), coalesce(supplier#993481, ), isnull(supplier#993481), coalesce(effectiveSubrange#993507, ), isnull(effectiveSubrange#993507), coalesce(plant#993482, ), isnull(plant#993482), coalesce(deliveryDateTime#993483, 1970-01-01 00:00:00), isnull(deliveryDateTime#993483)], [coalesce(supplierGroup#993493, ), isnull(supplierGroup#993493), coalesce(supplier#993488, ), isnull(supplier#993488), coalesce(effectiveSubrange#993508, ), isnull(effectiveSubrange#993508), coalesce(plant#993490, ), isnull(plant#993490), coalesce(deliveryDateTime#993491, 1970-01-01 00:00:00), isnull(deliveryDateTime#993491)], 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: 40<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 40<br>local bytes read: 27.1 KiB<br>merged fetch fallback count: 0<br>local blocks read: 40<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>47.1 KiB (1144.0 B, 2.2 KiB, 2.5 KiB (stage 84202.0: task 201767))<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>10 ms (0 ms, 0 ms, 0 ms (stage 84202.0: task 201763))<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 total (min, med, max (stageId: taskId))<br>27.1 KiB (654.0 B, 1313.0 B, 1471.0 B (stage 84202.0: task 201793))" tooltip="Exchange hashpartitioning(coalesce(supplierGroup#993480, ), isnull(supplierGroup#993480), coalesce(supplier#993481, ), isnull(supplier#993481), coalesce(effectiveSubrange#993507, ), isnull(effectiveSubrange#993507), coalesce(plant#993482, ), isnull(plant#993482), coalesce(deliveryDateTime#993483, 1970-01-01 00:00:00), isnull(deliveryDateTime#993483), 25), ENSURE_REQUIREMENTS, [plan_id=385779]"];
subgraph cluster33 {
isCluster="true";
id="cluster33";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n261 ms (1 ms, 1 ms, 48 ms (stage 84202.0: task 201767))";
tooltip="WholeStageCodegen (4)";
34 [id="node34" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, CASE WHEN isnotnull(supplyingPlant#993485) THEN productGroup#993486 ELSE subrange#993484 END AS effectiveSubrange#993507]"];
}
35 [id="node35" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 40<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 40<br>local bytes read total (min, med, max (stageId: taskId))<br>21.9 KiB (664.0 B, 859.0 B, 1259.0 B (stage 84202.0: task 201793))<br>merged fetch fallback count: 0<br>local blocks read: 25<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 47.7 KiB<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 1 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 84202.0: task 201764))<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: 21.9 KiB" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385508]"];
subgraph cluster36 {
isCluster="true";
id="cluster36";
label="WholeStageCodegen (1)\n \nduration: 133 ms";
tooltip="WholeStageCodegen (1)";
37 [id="node37" labelType="html" label="<b>Filter</b><br><br>number of output rows: 40" tooltip="Filter ((size(productOrderSchedule#993487, true) > 0) AND isnotnull(productOrderSchedule#993487))"];
38 [id="node38" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 40<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: 131 ms<br>metadata time: 0 ms<br>size of files read: 8.3 KiB<br>number of output rows: 40" tooltip="FileScan parquet [supplierGroup#993480,supplier#993481,plant#993482,deliveryDateTime#993483,subrange#993484,supplyingPlant#993485,productGroup#993486,productOrderSchedule#993487] Batched: true, DataFilters: [(size(productOrderSchedule#993487, true) > 0), isnotnull(productOrderSchedule#993487)], 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: 1 ms<br>time to build: 11 ms<br>time to collect: 19 ms<br>number of output rows: 40<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=386272]"];
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: 40<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 40<br>local bytes read: 9.0 KiB<br>merged fetch fallback count: 0<br>local blocks read: 38<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size total (min, med, max (stageId: taskId))<br>9.7 KiB (248.0 B, 496.0 B, 496.0 B (stage 84206.0: task 201817))<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>9 ms (0 ms, 0 ms, 0 ms (stage 84206.0: task 201813))<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 total (min, med, max (stageId: taskId))<br>9.0 KiB (240.0 B, 479.0 B, 480.0 B (stage 84206.0: task 201818))" tooltip="Exchange hashpartitioning(coalesce(supplierGroup#993493, ), isnull(supplierGroup#993493), coalesce(supplier#993488, ), isnull(supplier#993488), coalesce(effectiveSubrange#993508, ), isnull(effectiveSubrange#993508), coalesce(plant#993490, ), isnull(plant#993490), coalesce(deliveryDateTime#993491, 1970-01-01 00:00:00), isnull(deliveryDateTime#993491), 25), ENSURE_REQUIREMENTS, [plan_id=386052]"];
subgraph cluster43 {
isCluster="true";
id="cluster43";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n215 ms (1 ms, 1 ms, 39 ms (stage 84206.0: task 201815))";
tooltip="WholeStageCodegen (5)";
44 [id="node44" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, subrange#993489 AS effectiveSubrange#993508]"];
45 [id="node45" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 40" tooltip="BroadcastHashJoin [orderGroupingProfile#993492], [orderGroupingProfile#993499], LeftOuter, BuildRight, false"];
}
46 [id="node46" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 40<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 40<br>local bytes read total (min, med, max (stageId: taskId))<br>5.8 KiB (211.0 B, 234.0 B, 271.0 B (stage 84206.0: task 201827))<br>merged fetch fallback count: 0<br>local blocks read: 25<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 6.6 KiB<br>local merged bytes read: 0.0 B<br>local merged chunks fetched: 0<br>shuffle write time: 1 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 84206.0: task 201815))<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: 5.8 KiB" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385524]"];
subgraph cluster47 {
isCluster="true";
id="cluster47";
label="WholeStageCodegen (2)\n \nduration: 93 ms";
tooltip="WholeStageCodegen (2)";
48 [id="node48" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 40<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: 91 ms<br>metadata time: 0 ms<br>size of files read: 3.8 KiB<br>number of output rows: 40" tooltip="FileScan parquet [supplier#993488,subrange#993489,plant#993490,deliverydatetime#993491,ordergroupingprofile#993492,supplierGroup#993493,locationGroup#993494] 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: 93 ms<br>number of output rows: 6<br>data size: 2.0 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=385545]"];
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>628.0 B (121.0 B, 123.0 B, 384.0 B (stage 84204.0: task 201768))<br>merged fetch fallback count: 0<br>local blocks read: 5<br>remote merged chunks fetched: 0<br>remote blocks read: 1<br>data size total (min, med, max (stageId: taskId))<br>680.0 B (104.0 B, 112.0 B, 120.0 B (stage 84198.0: task 201757))<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 84198.0: task 201755))<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 84204.0: task 201768))<br>remote bytes read: 126.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 total (min, med, max (stageId: taskId))<br>754.0 B (121.0 B, 126.0 B, 133.0 B (stage 84198.0: task 201757))" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385537]"];
subgraph cluster52 {
isCluster="true";
id="cluster52";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n839 ms (112 ms, 146 ms, 161 ms (stage 84198.0: task 201758))";
tooltip="WholeStageCodegen (3)";
53 [id="node53" labelType="html" label="<b>Filter</b><br><br>number of output rows: 6" tooltip="Filter isnotnull(orderGroupingProfile#993499)"];
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>831 ms (111 ms, 145 ms, 160 ms (stage 84198.0: task 201756))<br>metadata time: 0 ms<br>size of files read: 41.3 KiB<br>number of output rows: 6" tooltip="FileScan parquet [orderGroupingProfile#993499,orderGroupCriteria#993501] Batched: true, DataFilters: [isnotnull(orderGroupingProfile#993499)], 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=3.0 KiB, rowCount=25)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (83)
+- == Final Plan ==
ResultQueryStage (52)
+- * SerializeFromObject (51)
+- MapPartitions (50)
+- DeserializeToObject (49)
+- ShuffleQueryStage (48), Statistics(sizeInBytes=3.0 KiB, rowCount=25)
+- Exchange (47)
+- * Project (46)
+- ObjectHashAggregate (45)
+- AQEShuffleRead (44)
+- ShuffleQueryStage (43), Statistics(sizeInBytes=2.5 KiB, rowCount=25)
+- Exchange (42)
+- ObjectHashAggregate (41)
+- * Project (40)
+- Window (39)
+- * Sort (38)
+- AQEShuffleRead (37)
+- ShuffleQueryStage (36), Statistics(sizeInBytes=18.6 KiB, rowCount=170)
+- Exchange (35)
+- * Project (34)
+- * Generate (33)
+- * Project (32)
+- * Project (31)
+- * BroadcastHashJoin LeftOuter BuildRight (30)
:- AQEShuffleRead (11)
: +- ShuffleQueryStage (10), Statistics(sizeInBytes=47.1 KiB, rowCount=40)
: +- Exchange (9)
: +- * Project (8)
: +- ShuffleQueryStage (7), Statistics(sizeInBytes=47.7 KiB, rowCount=40)
: +- Exchange (6)
: +- * Filter (5)
: +- * ColumnarToRow (4)
: +- Scan parquet (3)
+- BroadcastQueryStage (29), Statistics(sizeInBytes=2.0 MiB, rowCount=40)
+- BroadcastExchange (28)
+- AQEShuffleRead (27)
+- ShuffleQueryStage (26), Statistics(sizeInBytes=9.7 KiB, rowCount=40)
+- Exchange (25)
+- * Project (24)
+- * BroadcastHashJoin LeftOuter BuildRight (23)
:- ShuffleQueryStage (15), Statistics(sizeInBytes=6.6 KiB, rowCount=40)
: +- 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=3.0 KiB, rowCount=25)
+- Exchange (47)
+- * Project (46)
+- ObjectHashAggregate (45)
+- AQEShuffleRead (44)
+- ShuffleQueryStage (43), Statistics(sizeInBytes=2.5 KiB, rowCount=25)
+- Exchange (42)
+- ObjectHashAggregate (41)
+- * Project (40)
+- Window (39)
+- * Sort (38)
+- AQEShuffleRead (37)
+- ShuffleQueryStage (36), Statistics(sizeInBytes=18.6 KiB, rowCount=170)
+- Exchange (35)
+- * Project (34)
+- * Generate (33)
+- * Project (32)
+- * Project (31)
+- * BroadcastHashJoin LeftOuter BuildRight (30)
:- AQEShuffleRead (11)
: +- ShuffleQueryStage (10), Statistics(sizeInBytes=47.1 KiB, rowCount=40)
: +- Exchange (9)
: +- * Project (8)
: +- ShuffleQueryStage (7), Statistics(sizeInBytes=47.7 KiB, rowCount=40)
: +- Exchange (6)
: +- * Filter (5)
: +- * ColumnarToRow (4)
: +- Scan parquet (3)
+- BroadcastQueryStage (29), Statistics(sizeInBytes=2.0 MiB, rowCount=40)
+- BroadcastExchange (28)
+- AQEShuffleRead (27)
+- ShuffleQueryStage (26), Statistics(sizeInBytes=9.7 KiB, rowCount=40)
+- Exchange (25)
+- * Project (24)
+- * BroadcastHashJoin LeftOuter BuildRight (23)
:- ShuffleQueryStage (15), Statistics(sizeInBytes=6.6 KiB, rowCount=40)
: +- 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#993656]
Arguments: [unresolvedDependencies#993656], [(size(unresolvedDependencies#993656, true) > 0)]
(2) InMemoryRelation
Arguments: [orderProposalId#993650L, plant#993651, previousOrderProposals#993652, nodeId#993653L, dependentOnNodeIds#993654, clusterId#993655L, unresolvedDependencies#993656], StorageLevel(disk, memory, 2 replicas)
(3) Scan parquet
Output [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
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/10000002111]
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#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
(5) Filter [codegen id : 1]
Input [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
Condition : ((size(productOrderSchedule#993487, true) > 0) AND isnotnull(productOrderSchedule#993487))
(6) Exchange
Input [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385508]
(7) ShuffleQueryStage
Output [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
Arguments: 0
(8) Project [codegen id : 4]
Output [6]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, CASE WHEN isnotnull(supplyingPlant#993485) THEN productGroup#993486 ELSE subrange#993484 END AS effectiveSubrange#993507]
Input [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
(9) Exchange
Input [6]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507]
Arguments: hashpartitioning(coalesce(supplierGroup#993480, ), isnull(supplierGroup#993480), coalesce(supplier#993481, ), isnull(supplier#993481), coalesce(effectiveSubrange#993507, ), isnull(effectiveSubrange#993507), coalesce(plant#993482, ), isnull(plant#993482), coalesce(deliveryDateTime#993483, 1970-01-01 00:00:00), isnull(deliveryDateTime#993483), 25), ENSURE_REQUIREMENTS, [plan_id=385779]
(10) ShuffleQueryStage
Output [6]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507]
Arguments: 3
(11) AQEShuffleRead
Input [6]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507]
Arguments: local
(12) Scan parquet
Output [7]: [supplier#993488, subrange#993489, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494]
Batched: true
Location: InMemoryFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-param-determination-service/out/10000002111/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#993488, subrange#993489, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494]
(14) Exchange
Input [7]: [supplier#993488, subrange#993489, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385524]
(15) ShuffleQueryStage
Output [7]: [supplier#993488, subrange#993489, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494]
Arguments: 1
(16) Scan parquet
Output [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
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#993499, orderGroupCriteria#993501]
(18) Filter [codegen id : 3]
Input [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Condition : isnotnull(orderGroupingProfile#993499)
(19) Exchange
Input [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385537]
(20) ShuffleQueryStage
Output [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Arguments: 2
(21) BroadcastExchange
Input [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=385545]
(22) BroadcastQueryStage
Output [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Arguments: 4
(23) BroadcastHashJoin [codegen id : 5]
Left keys [1]: [orderGroupingProfile#993492]
Right keys [1]: [orderGroupingProfile#993499]
Join type: LeftOuter
Join condition: None
(24) Project [codegen id : 5]
Output [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, subrange#993489 AS effectiveSubrange#993508]
Input [9]: [supplier#993488, subrange#993489, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupingProfile#993499, orderGroupCriteria#993501]
(25) Exchange
Input [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
Arguments: hashpartitioning(coalesce(supplierGroup#993493, ), isnull(supplierGroup#993493), coalesce(supplier#993488, ), isnull(supplier#993488), coalesce(effectiveSubrange#993508, ), isnull(effectiveSubrange#993508), coalesce(plant#993490, ), isnull(plant#993490), coalesce(deliveryDateTime#993491, 1970-01-01 00:00:00), isnull(deliveryDateTime#993491), 25), ENSURE_REQUIREMENTS, [plan_id=386052]
(26) ShuffleQueryStage
Output [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
Arguments: 5
(27) AQEShuffleRead
Input [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
Arguments: local
(28) BroadcastExchange
Input [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
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=386272]
(29) BroadcastQueryStage
Output [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
Arguments: 6
(30) BroadcastHashJoin [codegen id : 6]
Left keys [10]: [coalesce(supplierGroup#993480, ), isnull(supplierGroup#993480), coalesce(supplier#993481, ), isnull(supplier#993481), coalesce(effectiveSubrange#993507, ), isnull(effectiveSubrange#993507), coalesce(plant#993482, ), isnull(plant#993482), coalesce(deliveryDateTime#993483, 1970-01-01 00:00:00), isnull(deliveryDateTime#993483)]
Right keys [10]: [coalesce(supplierGroup#993493, ), isnull(supplierGroup#993493), coalesce(supplier#993488, ), isnull(supplier#993488), coalesce(effectiveSubrange#993508, ), isnull(effectiveSubrange#993508), coalesce(plant#993490, ), isnull(plant#993490), coalesce(deliveryDateTime#993491, 1970-01-01 00:00:00), isnull(deliveryDateTime#993491)]
Join type: LeftOuter
Join condition: None
(31) Project [codegen id : 6]
Output [8]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, CASE WHEN isnull(orderGroupCriteria#993501) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#993501 END AS orderGroupCriteria#993520, orderGroupingProfile#993492, coalesce(supplierGroup#993480, supplier#993481) AS supplierOrGroup#993509, coalesce(locationGroup#993494, plant#993482) AS locationOrGroup#993510]
Input [14]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
(32) Project [codegen id : 6]
Output [14]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, orderGroupCriteria#993520.supplierSubrange AS _extract_supplierSubrange#993657, orderGroupCriteria#993520.mrpController AS _extract_mrpController#993658, orderGroupCriteria#993520.purchasingOrg AS _extract_purchasingOrg#993659, orderGroupCriteria#993520.orderDate AS _extract_orderDate#993660, orderGroupCriteria#993520.deliveryDate AS _extract_deliveryDate#993661, orderGroupCriteria#993520.supplier AS _extract_supplier#993662, orderGroupCriteria#993520.purchasingGroup AS _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510]
Input [8]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, orderGroupCriteria#993520, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510]
(33) Generate [codegen id : 6]
Input [14]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, _extract_supplierSubrange#993657, _extract_mrpController#993658, _extract_purchasingOrg#993659, _extract_orderDate#993660, _extract_deliveryDate#993661, _extract_supplier#993662, _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510]
Arguments: explode(productOrderSchedule#993487), [plant#993482, deliveryDateTime#993483, effectiveSubrange#993507, _extract_supplierSubrange#993657, _extract_mrpController#993658, _extract_purchasingOrg#993659, _extract_orderDate#993660, _extract_deliveryDate#993661, _extract_supplier#993662, _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510], false, [productOrderScheduleExploded#993532]
(34) Project [codegen id : 6]
Output [5]: [plant#993482, productOrderScheduleExploded#993532.product AS product#993533, productOrderScheduleExploded#993532.orderDateTime AS orderDateTime#993534, productOrderScheduleExploded#993532.availabilityDateTime AS availabilityDateTime#993535, xxhash64(CASE WHEN (_extract_supplierSubrange#993657 <=> true) THEN effectiveSubrange#993507 END, orderGroupingProfile#993492, CASE WHEN (_extract_mrpController#993658 <=> true) THEN productOrderScheduleExploded#993532.mrpController END, CASE WHEN (_extract_purchasingOrg#993659 <=> true) THEN productOrderScheduleExploded#993532.purchasingOrg END, CASE WHEN (_extract_orderDate#993660 <=> true) THEN productOrderScheduleExploded#993532.orderDateTime END, CASE WHEN (_extract_deliveryDate#993661 <=> true) THEN deliveryDateTime#993483 END, CASE WHEN (_extract_supplier#993662 <=> true) THEN supplierOrGroup#993509 END, locationOrGroup#993510, CASE WHEN (_extract_purchasingGroup#993663 <=> true) THEN productOrderScheduleExploded#993532.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#993507) AND (_extract_supplierSubrange#993657 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#993492) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.mrpController) AND (_extract_mrpController#993658 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.purchasingOrg) AND (_extract_purchasingOrg#993659 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.orderDateTime) AND (_extract_orderDate#993660 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#993483) AND (_extract_deliveryDate#993661 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#993509) AND (_extract_supplier#993662 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#993510) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.purchasingGroup) AND (_extract_purchasingGroup#993663 <=> true)) THEN 256 ELSE 0 END), 10000002111, 42) AS orderProposalId#993568L]
Input [14]: [plant#993482, deliveryDateTime#993483, effectiveSubrange#993507, _extract_supplierSubrange#993657, _extract_mrpController#993658, _extract_purchasingOrg#993659, _extract_orderDate#993660, _extract_deliveryDate#993661, _extract_supplier#993662, _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510, productOrderScheduleExploded#993532]
(35) Exchange
Input [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: hashpartitioning(product#993533, plant#993482, 25), ENSURE_REQUIREMENTS, [plan_id=386399]
(36) ShuffleQueryStage
Output [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: 7
(37) AQEShuffleRead
Input [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: coalesced
(38) Sort [codegen id : 7]
Input [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: [product#993533 ASC NULLS FIRST, plant#993482 ASC NULLS FIRST, availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST], false, 0
(39) Window
Input [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: [lag(orderProposalId#993568L, -1, null) windowspecdefinition(product#993533, plant#993482, availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#993597L], [product#993533, plant#993482], [availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST]
(40) Project [codegen id : 8]
Output [3]: [plant#993482, orderProposalId#993568L, previousOrderProposal#993597L]
Input [6]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L, previousOrderProposal#993597L]
(41) ObjectHashAggregate
Input [3]: [plant#993482, orderProposalId#993568L, previousOrderProposal#993597L]
Keys [1]: [orderProposalId#993568L]
Functions [2]: [partial_min(plant#993482), partial_collect_set(previousOrderProposal#993597L, 0, 0)]
Aggregate Attributes [2]: [min#993730, buf#993731]
Results [3]: [orderProposalId#993568L, min#993732, buf#993733]
(42) Exchange
Input [3]: [orderProposalId#993568L, min#993732, buf#993733]
Arguments: hashpartitioning(orderProposalId#993568L, 25), ENSURE_REQUIREMENTS, [plan_id=386497]
(43) ShuffleQueryStage
Output [3]: [orderProposalId#993568L, min#993732, buf#993733]
Arguments: 8
(44) AQEShuffleRead
Input [3]: [orderProposalId#993568L, min#993732, buf#993733]
Arguments: coalesced
(45) ObjectHashAggregate
Input [3]: [orderProposalId#993568L, min#993732, buf#993733]
Keys [1]: [orderProposalId#993568L]
Functions [2]: [min(plant#993482), collect_set(previousOrderProposal#993597L, 0, 0)]
Aggregate Attributes [2]: [min(plant#993482)#993620, collect_set(previousOrderProposal#993597L, 0, 0)#993621]
Results [4]: [orderProposalId#993568L, min(plant#993482)#993620 AS plant#993598, collect_set(previousOrderProposal#993597L, 0, 0)#993621 AS previousOrderProposals#993599, orderProposalId#993568L AS nodeId#993622L]
(46) Project [codegen id : 9]
Output [5]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, previousOrderProposals#993599 AS dependentOnNodeIds#993623]
Input [4]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L]
(47) Exchange
Input [5]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, dependentOnNodeIds#993623]
Arguments: hashpartitioning(plant#993598, 25), REPARTITION_BY_COL, [plan_id=386549]
(48) ShuffleQueryStage
Output [5]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, dependentOnNodeIds#993623]
Arguments: 9
(49) DeserializeToObject
Input [5]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, dependentOnNodeIds#993623]
Arguments: createexternalrow(static_invoke(java.lang.Long.valueOf(orderProposalId#993568L)), invoke(plant#993598.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#993599, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#993622L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#993623, 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#993634: org.apache.spark.sql.Row
(50) MapPartitions
Input [1]: [obj#993634]
Arguments: org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@5445319e, obj#993642: org.apache.spark.sql.Row
(51) SerializeFromObject [codegen id : 10]
Input [1]: [obj#993642]
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#993650L, 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#993651, 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#993652, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#993653L, 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#993654, 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#993655L, 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#993656]
(52) ResultQueryStage
Output [7]: [orderProposalId#993650L, plant#993651, previousOrderProposals#993652, nodeId#993653L, dependentOnNodeIds#993654, clusterId#993655L, unresolvedDependencies#993656]
Arguments: 10
(53) Filter
Input [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
Condition : ((size(productOrderSchedule#993487, true) > 0) AND isnotnull(productOrderSchedule#993487))
(54) Exchange
Input [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385386]
(55) Project
Output [6]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, CASE WHEN isnotnull(supplyingPlant#993485) THEN productGroup#993486 ELSE subrange#993484 END AS effectiveSubrange#993507]
Input [8]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, subrange#993484, supplyingPlant#993485, productGroup#993486, productOrderSchedule#993487]
(56) Exchange
Input [6]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507]
Arguments: hashpartitioning(coalesce(supplierGroup#993480, ), isnull(supplierGroup#993480), coalesce(supplier#993481, ), isnull(supplier#993481), coalesce(effectiveSubrange#993507, ), isnull(effectiveSubrange#993507), coalesce(plant#993482, ), isnull(plant#993482), coalesce(deliveryDateTime#993483, 1970-01-01 00:00:00), isnull(deliveryDateTime#993483), 25), ENSURE_REQUIREMENTS, [plan_id=385410]
(57) Sort
Input [6]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507]
Arguments: [coalesce(supplierGroup#993480, ) ASC NULLS FIRST, isnull(supplierGroup#993480) ASC NULLS FIRST, coalesce(supplier#993481, ) ASC NULLS FIRST, isnull(supplier#993481) ASC NULLS FIRST, coalesce(effectiveSubrange#993507, ) ASC NULLS FIRST, isnull(effectiveSubrange#993507) ASC NULLS FIRST, coalesce(plant#993482, ) ASC NULLS FIRST, isnull(plant#993482) ASC NULLS FIRST, coalesce(deliveryDateTime#993483, 1970-01-01 00:00:00) ASC NULLS FIRST, isnull(deliveryDateTime#993483) ASC NULLS FIRST], false, 0
(58) Exchange
Input [7]: [supplier#993488, subrange#993489, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385364]
(59) Filter
Input [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Condition : isnotnull(orderGroupingProfile#993499)
(60) Exchange
Input [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=385388]
(61) BroadcastExchange
Input [2]: [orderGroupingProfile#993499, orderGroupCriteria#993501]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=385405]
(62) BroadcastHashJoin
Left keys [1]: [orderGroupingProfile#993492]
Right keys [1]: [orderGroupingProfile#993499]
Join type: LeftOuter
Join condition: None
(63) Project
Output [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, subrange#993489 AS effectiveSubrange#993508]
Input [9]: [supplier#993488, subrange#993489, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupingProfile#993499, orderGroupCriteria#993501]
(64) Exchange
Input [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
Arguments: hashpartitioning(coalesce(supplierGroup#993493, ), isnull(supplierGroup#993493), coalesce(supplier#993488, ), isnull(supplier#993488), coalesce(effectiveSubrange#993508, ), isnull(effectiveSubrange#993508), coalesce(plant#993490, ), isnull(plant#993490), coalesce(deliveryDateTime#993491, 1970-01-01 00:00:00), isnull(deliveryDateTime#993491), 25), ENSURE_REQUIREMENTS, [plan_id=385411]
(65) Sort
Input [8]: [supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
Arguments: [coalesce(supplierGroup#993493, ) ASC NULLS FIRST, isnull(supplierGroup#993493) ASC NULLS FIRST, coalesce(supplier#993488, ) ASC NULLS FIRST, isnull(supplier#993488) ASC NULLS FIRST, coalesce(effectiveSubrange#993508, ) ASC NULLS FIRST, isnull(effectiveSubrange#993508) ASC NULLS FIRST, coalesce(plant#993490, ) ASC NULLS FIRST, isnull(plant#993490) ASC NULLS FIRST, coalesce(deliveryDateTime#993491, 1970-01-01 00:00:00) ASC NULLS FIRST, isnull(deliveryDateTime#993491) ASC NULLS FIRST], false, 0
(66) SortMergeJoin
Left keys [10]: [coalesce(supplierGroup#993480, ), isnull(supplierGroup#993480), coalesce(supplier#993481, ), isnull(supplier#993481), coalesce(effectiveSubrange#993507, ), isnull(effectiveSubrange#993507), coalesce(plant#993482, ), isnull(plant#993482), coalesce(deliveryDateTime#993483, 1970-01-01 00:00:00), isnull(deliveryDateTime#993483)]
Right keys [10]: [coalesce(supplierGroup#993493, ), isnull(supplierGroup#993493), coalesce(supplier#993488, ), isnull(supplier#993488), coalesce(effectiveSubrange#993508, ), isnull(effectiveSubrange#993508), coalesce(plant#993490, ), isnull(plant#993490), coalesce(deliveryDateTime#993491, 1970-01-01 00:00:00), isnull(deliveryDateTime#993491)]
Join type: LeftOuter
Join condition: None
(67) Project
Output [8]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, CASE WHEN isnull(orderGroupCriteria#993501) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#993501 END AS orderGroupCriteria#993520, orderGroupingProfile#993492, coalesce(supplierGroup#993480, supplier#993481) AS supplierOrGroup#993509, coalesce(locationGroup#993494, plant#993482) AS locationOrGroup#993510]
Input [14]: [supplierGroup#993480, supplier#993481, plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, supplier#993488, plant#993490, deliverydatetime#993491, ordergroupingprofile#993492, supplierGroup#993493, locationGroup#993494, orderGroupCriteria#993501, effectiveSubrange#993508]
(68) Project
Output [14]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, orderGroupCriteria#993520.supplierSubrange AS _extract_supplierSubrange#993657, orderGroupCriteria#993520.mrpController AS _extract_mrpController#993658, orderGroupCriteria#993520.purchasingOrg AS _extract_purchasingOrg#993659, orderGroupCriteria#993520.orderDate AS _extract_orderDate#993660, orderGroupCriteria#993520.deliveryDate AS _extract_deliveryDate#993661, orderGroupCriteria#993520.supplier AS _extract_supplier#993662, orderGroupCriteria#993520.purchasingGroup AS _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510]
Input [8]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, orderGroupCriteria#993520, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510]
(69) Generate
Input [14]: [plant#993482, deliveryDateTime#993483, productOrderSchedule#993487, effectiveSubrange#993507, _extract_supplierSubrange#993657, _extract_mrpController#993658, _extract_purchasingOrg#993659, _extract_orderDate#993660, _extract_deliveryDate#993661, _extract_supplier#993662, _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510]
Arguments: explode(productOrderSchedule#993487), [plant#993482, deliveryDateTime#993483, effectiveSubrange#993507, _extract_supplierSubrange#993657, _extract_mrpController#993658, _extract_purchasingOrg#993659, _extract_orderDate#993660, _extract_deliveryDate#993661, _extract_supplier#993662, _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510], false, [productOrderScheduleExploded#993532]
(70) Project
Output [5]: [plant#993482, productOrderScheduleExploded#993532.product AS product#993533, productOrderScheduleExploded#993532.orderDateTime AS orderDateTime#993534, productOrderScheduleExploded#993532.availabilityDateTime AS availabilityDateTime#993535, xxhash64(CASE WHEN (_extract_supplierSubrange#993657 <=> true) THEN effectiveSubrange#993507 END, orderGroupingProfile#993492, CASE WHEN (_extract_mrpController#993658 <=> true) THEN productOrderScheduleExploded#993532.mrpController END, CASE WHEN (_extract_purchasingOrg#993659 <=> true) THEN productOrderScheduleExploded#993532.purchasingOrg END, CASE WHEN (_extract_orderDate#993660 <=> true) THEN productOrderScheduleExploded#993532.orderDateTime END, CASE WHEN (_extract_deliveryDate#993661 <=> true) THEN deliveryDateTime#993483 END, CASE WHEN (_extract_supplier#993662 <=> true) THEN supplierOrGroup#993509 END, locationOrGroup#993510, CASE WHEN (_extract_purchasingGroup#993663 <=> true) THEN productOrderScheduleExploded#993532.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#993507) AND (_extract_supplierSubrange#993657 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#993492) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.mrpController) AND (_extract_mrpController#993658 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.purchasingOrg) AND (_extract_purchasingOrg#993659 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.orderDateTime) AND (_extract_orderDate#993660 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#993483) AND (_extract_deliveryDate#993661 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#993509) AND (_extract_supplier#993662 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#993510) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#993532.purchasingGroup) AND (_extract_purchasingGroup#993663 <=> true)) THEN 256 ELSE 0 END), 10000002111, 42) AS orderProposalId#993568L]
Input [14]: [plant#993482, deliveryDateTime#993483, effectiveSubrange#993507, _extract_supplierSubrange#993657, _extract_mrpController#993658, _extract_purchasingOrg#993659, _extract_orderDate#993660, _extract_deliveryDate#993661, _extract_supplier#993662, _extract_purchasingGroup#993663, orderGroupingProfile#993492, supplierOrGroup#993509, locationOrGroup#993510, productOrderScheduleExploded#993532]
(71) Exchange
Input [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: hashpartitioning(product#993533, plant#993482, 25), ENSURE_REQUIREMENTS, [plan_id=385420]
(72) Sort
Input [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: [product#993533 ASC NULLS FIRST, plant#993482 ASC NULLS FIRST, availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST], false, 0
(73) Window
Input [5]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L]
Arguments: [lag(orderProposalId#993568L, -1, null) windowspecdefinition(product#993533, plant#993482, availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#993597L], [product#993533, plant#993482], [availabilityDateTime#993535 ASC NULLS FIRST, orderDateTime#993534 ASC NULLS FIRST, orderProposalId#993568L ASC NULLS FIRST]
(74) Project
Output [3]: [plant#993482, orderProposalId#993568L, previousOrderProposal#993597L]
Input [6]: [plant#993482, product#993533, orderDateTime#993534, availabilityDateTime#993535, orderProposalId#993568L, previousOrderProposal#993597L]
(75) ObjectHashAggregate
Input [3]: [plant#993482, orderProposalId#993568L, previousOrderProposal#993597L]
Keys [1]: [orderProposalId#993568L]
Functions [2]: [partial_min(plant#993482), partial_collect_set(previousOrderProposal#993597L, 0, 0)]
Aggregate Attributes [2]: [min#993730, buf#993731]
Results [3]: [orderProposalId#993568L, min#993732, buf#993733]
(76) Exchange
Input [3]: [orderProposalId#993568L, min#993732, buf#993733]
Arguments: hashpartitioning(orderProposalId#993568L, 25), ENSURE_REQUIREMENTS, [plan_id=385426]
(77) ObjectHashAggregate
Input [3]: [orderProposalId#993568L, min#993732, buf#993733]
Keys [1]: [orderProposalId#993568L]
Functions [2]: [min(plant#993482), collect_set(previousOrderProposal#993597L, 0, 0)]
Aggregate Attributes [2]: [min(plant#993482)#993620, collect_set(previousOrderProposal#993597L, 0, 0)#993621]
Results [4]: [orderProposalId#993568L, min(plant#993482)#993620 AS plant#993598, collect_set(previousOrderProposal#993597L, 0, 0)#993621 AS previousOrderProposals#993599, orderProposalId#993568L AS nodeId#993622L]
(78) Project
Output [5]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, previousOrderProposals#993599 AS dependentOnNodeIds#993623]
Input [4]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L]
(79) Exchange
Input [5]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, dependentOnNodeIds#993623]
Arguments: hashpartitioning(plant#993598, 25), REPARTITION_BY_COL, [plan_id=385429]
(80) DeserializeToObject
Input [5]: [orderProposalId#993568L, plant#993598, previousOrderProposals#993599, nodeId#993622L, dependentOnNodeIds#993623]
Arguments: createexternalrow(static_invoke(java.lang.Long.valueOf(orderProposalId#993568L)), invoke(plant#993598.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#993599, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#993622L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#993623, 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#993634: org.apache.spark.sql.Row
(81) MapPartitions
Input [1]: [obj#993634]
Arguments: org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@5445319e, obj#993642: org.apache.spark.sql.Row
(82) SerializeFromObject
Input [1]: [obj#993642]
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#993650L, 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#993651, 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#993652, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#993653L, 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#993654, 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#993655L, 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#993656]
(83) AdaptiveSparkPlan
Output [7]: [orderProposalId#993650L, plant#993651, previousOrderProposals#993652, nodeId#993653L, dependentOnNodeIds#993654, clusterId#993655L, unresolvedDependencies#993656]
Arguments: isFinalPlan=true
(84) TableCacheQueryStage
Output [1]: [unresolvedDependencies#993656]
Arguments: 0
(85) Filter [codegen id : 1]
Input [1]: [unresolvedDependencies#993656]
Condition : (size(unresolvedDependencies#993656, true) > 0)
(86) Project [codegen id : 1]
Output: []
Input [1]: [unresolvedDependencies#993656]
(87) CollectLimit
Input: []
Arguments: 1
(88) ResultQueryStage
Output: []
Arguments: 1
(89) Filter
Input [1]: [unresolvedDependencies#993656]
Condition : (size(unresolvedDependencies#993656, true) > 0)
(90) Project
Output: []
Input [1]: [unresolvedDependencies#993656]
(91) CollectLimit
Input: []
Arguments: 1
(92) AdaptiveSparkPlan
Output: []
Arguments: isFinalPlan=true