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 68080.0: task 169728))";
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#818451, true) > 0)"];
}
5 [id="node5" labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 12" tooltip="InMemoryTableScan [unresolvedDependencies#818451], [(size(unresolvedDependencies#818451, 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))\n52 ms (0 ms, 1 ms, 10 ms (stage 68074.0: task 169699))";
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#818445L, 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#818446, 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#818447, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#818448L, 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#818449, 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#818450L, 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#818451]"];
}
9 [id="node9" labelType="html" label="<br><b>MapPartitions</b><br><br>" tooltip="MapPartitions org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@4e5e4601, obj#818437: 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#818363L)), invoke(plant#818393.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#818394, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#818417L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#818418, 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#818429: org.apache.spark.sql.Row"];
11 [id="node11" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 12<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 12<br>local bytes read total (min, med, max (stageId: taskId))<br>625.0 B (312.0 B, 313.0 B, 313.0 B (stage 68074.0: task 169684))<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: 1408.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 68074.0: task 169685))<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: 625.0 B" tooltip="Exchange hashpartitioning(plant#818393, 25), REPARTITION_BY_COL, [plan_id=321641]"];
subgraph cluster12 {
isCluster="true";
id="cluster12";
label="WholeStageCodegen (9)\n \nduration: 36 ms";
tooltip="WholeStageCodegen (9)";
13 [id="node13" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, previousOrderProposals#818394 AS dependentOnNodeIds#818418]"];
}
14 [id="node14" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 12<br>time in aggregation build: 93 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[orderProposalId#818363L], functions=[min(plant#818277), collect_set(previousOrderProposal#818392L, 0, 0)])"];
15 [id="node15" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1560.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: 12<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 12<br>local bytes read: 1498.0 B<br>merged fetch fallback count: 0<br>local blocks read: 9<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 1184.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: 1498.0 B" tooltip="Exchange hashpartitioning(orderProposalId#818363L, 25), ENSURE_REQUIREMENTS, [plan_id=321589]"];
17 [id="node17" labelType="html" label="<b>ObjectHashAggregate</b><br><br>number of output rows: 12<br>time in aggregation build: 85 ms<br>spill size: 0.0 B<br>number of sort fallback tasks: 0" tooltip="ObjectHashAggregate(keys=[orderProposalId#818363L], functions=[partial_min(plant#818277), partial_collect_set(previousOrderProposal#818392L, 0, 0)])"];
subgraph cluster18 {
isCluster="true";
id="cluster18";
label="WholeStageCodegen (8)\n \nduration: 85 ms";
tooltip="WholeStageCodegen (8)";
19 [id="node19" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#818277, orderProposalId#818363L, previousOrderProposal#818392L]"];
}
20 [id="node20" labelType="html" label="<b>Window</b><br><br>spill size: 0.0 B" tooltip="Window [lag(orderProposalId#818363L, -1, null) windowspecdefinition(product#818328, plant#818277, availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#818392L], [product#818328, plant#818277], [availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST]"];
subgraph cluster21 {
isCluster="true";
id="cluster21";
label="WholeStageCodegen (7)\n \nduration: 302 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#818328 ASC NULLS FIRST, plant#818277 ASC NULLS FIRST, availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST], false, 0"];
}
23 [id="node23" labelType="html" label="<b>AQEShuffleRead</b><br><br>number of partitions: 1<br>partition data size: 1174.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: 18<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 18<br>local bytes read: 1098.0 B<br>merged fetch fallback count: 0<br>local blocks read: 4<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 2016.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: 1098.0 B" tooltip="Exchange hashpartitioning(product#818328, plant#818277, 25), ENSURE_REQUIREMENTS, [plan_id=321491]"];
subgraph cluster25 {
isCluster="true";
id="cluster25";
label="WholeStageCodegen (6)\n \nduration: 36 ms";
tooltip="WholeStageCodegen (6)";
26 [id="node26" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#818277, productOrderScheduleExploded#818327.product AS product#818328, productOrderScheduleExploded#818327.orderDateTime AS orderDateTime#818329, productOrderScheduleExploded#818327.availabilityDateTime AS availabilityDateTime#818330, xxhash64(CASE WHEN (_extract_supplierSubrange#818452 <=> true) THEN effectiveSubrange#818302 END, orderGroupingProfile#818287, CASE WHEN (_extract_mrpController#818453 <=> true) THEN productOrderScheduleExploded#818327.mrpController END, CASE WHEN (_extract_purchasingOrg#818454 <=> true) THEN productOrderScheduleExploded#818327.purchasingOrg END, CASE WHEN (_extract_orderDate#818455 <=> true) THEN productOrderScheduleExploded#818327.orderDateTime END, CASE WHEN (_extract_deliveryDate#818456 <=> true) THEN deliveryDateTime#818278 END, CASE WHEN (_extract_supplier#818457 <=> true) THEN supplierOrGroup#818304 END, locationOrGroup#818305, CASE WHEN (_extract_purchasingGroup#818458 <=> true) THEN productOrderScheduleExploded#818327.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#818302) AND (_extract_supplierSubrange#818452 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#818287) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.mrpController) AND (_extract_mrpController#818453 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.purchasingOrg) AND (_extract_purchasingOrg#818454 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.orderDateTime) AND (_extract_orderDate#818455 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#818278) AND (_extract_deliveryDate#818456 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#818304) AND (_extract_supplier#818457 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#818305) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.purchasingGroup) AND (_extract_purchasingGroup#818458 <=> true)) THEN 256 ELSE 0 END), 10000002109, 42) AS orderProposalId#818363L]"];
27 [id="node27" labelType="html" label="<b>Generate</b><br><br>number of output rows: 18" tooltip="Generate explode(productOrderSchedule#818282), [plant#818277, deliveryDateTime#818278, effectiveSubrange#818302, _extract_supplierSubrange#818452, _extract_mrpController#818453, _extract_purchasingOrg#818454, _extract_orderDate#818455, _extract_deliveryDate#818456, _extract_supplier#818457, _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305], false, [productOrderScheduleExploded#818327]"];
28 [id="node28" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, orderGroupCriteria#818315.supplierSubrange AS _extract_supplierSubrange#818452, orderGroupCriteria#818315.mrpController AS _extract_mrpController#818453, orderGroupCriteria#818315.purchasingOrg AS _extract_purchasingOrg#818454, orderGroupCriteria#818315.orderDate AS _extract_orderDate#818455, orderGroupCriteria#818315.deliveryDate AS _extract_deliveryDate#818456, orderGroupCriteria#818315.supplier AS _extract_supplier#818457, orderGroupCriteria#818315.purchasingGroup AS _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305]"];
29 [id="node29" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, CASE WHEN isnull(orderGroupCriteria#818296) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#818296 END AS orderGroupCriteria#818315, orderGroupingProfile#818287, coalesce(supplierGroup#818275, supplier#818276) AS supplierOrGroup#818304, coalesce(locationGroup#818289, plant#818277) AS locationOrGroup#818305]"];
30 [id="node30" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 12" tooltip="BroadcastHashJoin [coalesce(supplierGroup#818275, ), isnull(supplierGroup#818275), coalesce(supplier#818276, ), isnull(supplier#818276), coalesce(effectiveSubrange#818302, ), isnull(effectiveSubrange#818302), coalesce(plant#818277, ), isnull(plant#818277), coalesce(deliveryDateTime#818278, 1970-01-01 00:00:00), isnull(deliveryDateTime#818278)], [coalesce(supplierGroup#818288, ), isnull(supplierGroup#818288), coalesce(supplier#818283, ), isnull(supplier#818283), coalesce(effectiveSubrange#818303, ), isnull(effectiveSubrange#818303), coalesce(plant#818285, ), isnull(plant#818285), coalesce(deliveryDateTime#818286, 1970-01-01 00:00:00), isnull(deliveryDateTime#818286)], 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: 12<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 12<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: 12<br>data size total (min, med, max (stageId: taskId))<br>6.1 KiB (400.0 B, 648.0 B, 648.0 B (stage 68049.0: task 169606))<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>4 ms (0 ms, 0 ms, 0 ms (stage 68049.0: task 169605))<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: 5.3 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>5.3 KiB (411.0 B, 497.0 B, 497.0 B (stage 68049.0: task 169606))" tooltip="Exchange hashpartitioning(coalesce(supplierGroup#818275, ), isnull(supplierGroup#818275), coalesce(supplier#818276, ), isnull(supplier#818276), coalesce(effectiveSubrange#818302, ), isnull(effectiveSubrange#818302), coalesce(plant#818277, ), isnull(plant#818277), coalesce(deliveryDateTime#818278, 1970-01-01 00:00:00), isnull(deliveryDateTime#818278), 25), ENSURE_REQUIREMENTS, [plan_id=320892]"];
subgraph cluster33 {
isCluster="true";
id="cluster33";
label="WholeStageCodegen (4)\n \nduration: total (min, med, max (stageId: taskId))\n352 ms (0 ms, 1 ms, 34 ms (stage 68049.0: task 169606))";
tooltip="WholeStageCodegen (4)";
34 [id="node34" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, CASE WHEN isnotnull(supplyingPlant#818280) THEN productGroup#818281 ELSE subrange#818279 END AS effectiveSubrange#818302]"];
}
35 [id="node35" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 12<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 12<br>local bytes read total (min, med, max (stageId: taskId))<br>5.4 KiB (409.0 B, 506.0 B, 506.0 B (stage 68049.0: task 169606))<br>merged fetch fallback count: 0<br>local blocks read: 12<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 6.3 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 68049.0: task 169606))<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.4 KiB" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320621]"];
subgraph cluster36 {
isCluster="true";
id="cluster36";
label="WholeStageCodegen (1)\n \nduration: 85 ms";
tooltip="WholeStageCodegen (1)";
37 [id="node37" labelType="html" label="<b>Filter</b><br><br>number of output rows: 12" tooltip="Filter ((size(productOrderSchedule#818282, true) > 0) AND isnotnull(productOrderSchedule#818282))"];
38 [id="node38" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 12<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: 83 ms<br>metadata time: 0 ms<br>size of files read: 7.0 KiB<br>number of output rows: 12" tooltip="FileScan parquet [supplierGroup#818275,supplier#818276,plant#818277,deliveryDateTime#818278,subrange#818279,supplyingPlant#818280,productGroup#818281,productOrderSchedule#818282] Batched: true, DataFilters: [(size(productOrderSchedule#818282, true) > 0), isnotnull(productOrderSchedule#818282)], 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: 6 ms<br>time to collect: 17 ms<br>number of output rows: 12<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=321364]"];
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: 12<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 12<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: 12<br>data size total (min, med, max (stageId: taskId))<br>3.0 KiB (248.0 B, 264.0 B, 264.0 B (stage 68053.0: task 169655))<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>5 ms (0 ms, 0 ms, 0 ms (stage 68053.0: task 169656))<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: 2.9 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>2.9 KiB (240.0 B, 261.0 B, 261.0 B (stage 68053.0: task 169655))" tooltip="Exchange hashpartitioning(coalesce(supplierGroup#818288, ), isnull(supplierGroup#818288), coalesce(supplier#818283, ), isnull(supplier#818283), coalesce(effectiveSubrange#818303, ), isnull(effectiveSubrange#818303), coalesce(plant#818285, ), isnull(plant#818285), coalesce(deliveryDateTime#818286, 1970-01-01 00:00:00), isnull(deliveryDateTime#818286), 25), ENSURE_REQUIREMENTS, [plan_id=321240]"];
subgraph cluster43 {
isCluster="true";
id="cluster43";
label="WholeStageCodegen (5)\n \nduration: total (min, med, max (stageId: taskId))\n385 ms (0 ms, 1 ms, 38 ms (stage 68053.0: task 169660))";
tooltip="WholeStageCodegen (5)";
44 [id="node44" labelType="html" label="<br><b>Project</b><br><br>" tooltip="Project [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, subrange#818284 AS effectiveSubrange#818303]"];
45 [id="node45" labelType="html" label="<b>BroadcastHashJoin</b><br><br>number of output rows: 12" tooltip="BroadcastHashJoin [orderGroupingProfile#818287], [orderGroupingProfile#818294], LeftOuter, BuildRight, false"];
}
46 [id="node46" labelType="html" label="<b>Exchange</b><br><br>shuffle records written: 12<br>remote merged reqs duration: 0 ms<br>remote merged blocks fetched: 0<br>records read: 12<br>local bytes read total (min, med, max (stageId: taskId))<br>2.6 KiB (211.0 B, 235.0 B, 235.0 B (stage 68053.0: task 169655))<br>merged fetch fallback count: 0<br>local blocks read: 12<br>remote merged chunks fetched: 0<br>remote blocks read: 0<br>data size: 2.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 68053.0: task 169655))<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.6 KiB" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320637]"];
subgraph cluster47 {
isCluster="true";
id="cluster47";
label="WholeStageCodegen (2)\n \nduration: 83 ms";
tooltip="WholeStageCodegen (2)";
48 [id="node48" labelType="html" label="<b>ColumnarToRow</b><br><br>number of output rows: 12<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: 81 ms<br>metadata time: 0 ms<br>size of files read: 3.8 KiB<br>number of output rows: 12" tooltip="FileScan parquet [supplier#818283,subrange#818284,plant#818285,deliverydatetime#818286,ordergroupingprofile#818287,supplierGroup#818288,locationGroup#818289] 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: 0 ms<br>time to collect: 100 ms<br>number of output rows: 6<br>data size: 2.0 MiB" tooltip="BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=320658]"];
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 68051.0: task 169615))<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 68046.0: task 169598))<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 68046.0: task 169599))<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 68051.0: task 169615))<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 68046.0: task 169600))" tooltip="Exchange RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320650]"];
subgraph cluster52 {
isCluster="true";
id="cluster52";
label="WholeStageCodegen (3)\n \nduration: total (min, med, max (stageId: taskId))\n705 ms (90 ms, 123 ms, 132 ms (stage 68046.0: task 169601))";
tooltip="WholeStageCodegen (3)";
53 [id="node53" labelType="html" label="<b>Filter</b><br><br>number of output rows: 6" tooltip="Filter isnotnull(orderGroupingProfile#818294)"];
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>701 ms (89 ms, 122 ms, 132 ms (stage 68046.0: task 169601))<br>metadata time: 0 ms<br>size of files read: 41.3 KiB<br>number of output rows: 6" tooltip="FileScan parquet [orderGroupingProfile#818294,orderGroupCriteria#818296] Batched: true, DataFilters: [isnotnull(orderGroupingProfile#818294)], 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=1408.0 B, rowCount=12)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- AdaptiveSparkPlan (83)
+- == Final Plan ==
ResultQueryStage (52)
+- * SerializeFromObject (51)
+- MapPartitions (50)
+- DeserializeToObject (49)
+- ShuffleQueryStage (48), Statistics(sizeInBytes=1408.0 B, rowCount=12)
+- Exchange (47)
+- * Project (46)
+- ObjectHashAggregate (45)
+- AQEShuffleRead (44)
+- ShuffleQueryStage (43), Statistics(sizeInBytes=1184.0 B, rowCount=12)
+- Exchange (42)
+- ObjectHashAggregate (41)
+- * Project (40)
+- Window (39)
+- * Sort (38)
+- AQEShuffleRead (37)
+- ShuffleQueryStage (36), Statistics(sizeInBytes=2016.0 B, rowCount=18)
+- Exchange (35)
+- * Project (34)
+- * Generate (33)
+- * Project (32)
+- * Project (31)
+- * BroadcastHashJoin LeftOuter BuildRight (30)
:- AQEShuffleRead (11)
: +- ShuffleQueryStage (10), Statistics(sizeInBytes=6.1 KiB, rowCount=12)
: +- Exchange (9)
: +- * Project (8)
: +- ShuffleQueryStage (7), Statistics(sizeInBytes=6.3 KiB, rowCount=12)
: +- Exchange (6)
: +- * Filter (5)
: +- * ColumnarToRow (4)
: +- Scan parquet (3)
+- BroadcastQueryStage (29), Statistics(sizeInBytes=2.0 MiB, rowCount=12)
+- BroadcastExchange (28)
+- AQEShuffleRead (27)
+- ShuffleQueryStage (26), Statistics(sizeInBytes=3.0 KiB, rowCount=12)
+- Exchange (25)
+- * Project (24)
+- * BroadcastHashJoin LeftOuter BuildRight (23)
:- ShuffleQueryStage (15), Statistics(sizeInBytes=2.1 KiB, rowCount=12)
: +- 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=1408.0 B, rowCount=12)
+- Exchange (47)
+- * Project (46)
+- ObjectHashAggregate (45)
+- AQEShuffleRead (44)
+- ShuffleQueryStage (43), Statistics(sizeInBytes=1184.0 B, rowCount=12)
+- Exchange (42)
+- ObjectHashAggregate (41)
+- * Project (40)
+- Window (39)
+- * Sort (38)
+- AQEShuffleRead (37)
+- ShuffleQueryStage (36), Statistics(sizeInBytes=2016.0 B, rowCount=18)
+- Exchange (35)
+- * Project (34)
+- * Generate (33)
+- * Project (32)
+- * Project (31)
+- * BroadcastHashJoin LeftOuter BuildRight (30)
:- AQEShuffleRead (11)
: +- ShuffleQueryStage (10), Statistics(sizeInBytes=6.1 KiB, rowCount=12)
: +- Exchange (9)
: +- * Project (8)
: +- ShuffleQueryStage (7), Statistics(sizeInBytes=6.3 KiB, rowCount=12)
: +- Exchange (6)
: +- * Filter (5)
: +- * ColumnarToRow (4)
: +- Scan parquet (3)
+- BroadcastQueryStage (29), Statistics(sizeInBytes=2.0 MiB, rowCount=12)
+- BroadcastExchange (28)
+- AQEShuffleRead (27)
+- ShuffleQueryStage (26), Statistics(sizeInBytes=3.0 KiB, rowCount=12)
+- Exchange (25)
+- * Project (24)
+- * BroadcastHashJoin LeftOuter BuildRight (23)
:- ShuffleQueryStage (15), Statistics(sizeInBytes=2.1 KiB, rowCount=12)
: +- 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#818451]
Arguments: [unresolvedDependencies#818451], [(size(unresolvedDependencies#818451, true) > 0)]
(2) InMemoryRelation
Arguments: [orderProposalId#818445L, plant#818446, previousOrderProposals#818447, nodeId#818448L, dependentOnNodeIds#818449, clusterId#818450L, unresolvedDependencies#818451], StorageLevel(disk, memory, 2 replicas)
(3) Scan parquet
Output [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
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/10000002109]
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#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
(5) Filter [codegen id : 1]
Input [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
Condition : ((size(productOrderSchedule#818282, true) > 0) AND isnotnull(productOrderSchedule#818282))
(6) Exchange
Input [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320621]
(7) ShuffleQueryStage
Output [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
Arguments: 0
(8) Project [codegen id : 4]
Output [6]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, CASE WHEN isnotnull(supplyingPlant#818280) THEN productGroup#818281 ELSE subrange#818279 END AS effectiveSubrange#818302]
Input [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
(9) Exchange
Input [6]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302]
Arguments: hashpartitioning(coalesce(supplierGroup#818275, ), isnull(supplierGroup#818275), coalesce(supplier#818276, ), isnull(supplier#818276), coalesce(effectiveSubrange#818302, ), isnull(effectiveSubrange#818302), coalesce(plant#818277, ), isnull(plant#818277), coalesce(deliveryDateTime#818278, 1970-01-01 00:00:00), isnull(deliveryDateTime#818278), 25), ENSURE_REQUIREMENTS, [plan_id=320892]
(10) ShuffleQueryStage
Output [6]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302]
Arguments: 3
(11) AQEShuffleRead
Input [6]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302]
Arguments: local
(12) Scan parquet
Output [7]: [supplier#818283, subrange#818284, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289]
Batched: true
Location: InMemoryFileIndex [hdlfs://2e93940d-4be8-4f12-830d-f0b8d392c03a.files.hdl.prod-eu20.hanacloud.ondemand.com:443/crp-param-determination-service/out/10000002109/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#818283, subrange#818284, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289]
(14) Exchange
Input [7]: [supplier#818283, subrange#818284, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320637]
(15) ShuffleQueryStage
Output [7]: [supplier#818283, subrange#818284, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289]
Arguments: 1
(16) Scan parquet
Output [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
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#818294, orderGroupCriteria#818296]
(18) Filter [codegen id : 3]
Input [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Condition : isnotnull(orderGroupingProfile#818294)
(19) Exchange
Input [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320650]
(20) ShuffleQueryStage
Output [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Arguments: 2
(21) BroadcastExchange
Input [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=320658]
(22) BroadcastQueryStage
Output [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Arguments: 4
(23) BroadcastHashJoin [codegen id : 5]
Left keys [1]: [orderGroupingProfile#818287]
Right keys [1]: [orderGroupingProfile#818294]
Join type: LeftOuter
Join condition: None
(24) Project [codegen id : 5]
Output [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, subrange#818284 AS effectiveSubrange#818303]
Input [9]: [supplier#818283, subrange#818284, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupingProfile#818294, orderGroupCriteria#818296]
(25) Exchange
Input [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
Arguments: hashpartitioning(coalesce(supplierGroup#818288, ), isnull(supplierGroup#818288), coalesce(supplier#818283, ), isnull(supplier#818283), coalesce(effectiveSubrange#818303, ), isnull(effectiveSubrange#818303), coalesce(plant#818285, ), isnull(plant#818285), coalesce(deliveryDateTime#818286, 1970-01-01 00:00:00), isnull(deliveryDateTime#818286), 25), ENSURE_REQUIREMENTS, [plan_id=321240]
(26) ShuffleQueryStage
Output [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
Arguments: 5
(27) AQEShuffleRead
Input [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
Arguments: local
(28) BroadcastExchange
Input [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
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=321364]
(29) BroadcastQueryStage
Output [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
Arguments: 6
(30) BroadcastHashJoin [codegen id : 6]
Left keys [10]: [coalesce(supplierGroup#818275, ), isnull(supplierGroup#818275), coalesce(supplier#818276, ), isnull(supplier#818276), coalesce(effectiveSubrange#818302, ), isnull(effectiveSubrange#818302), coalesce(plant#818277, ), isnull(plant#818277), coalesce(deliveryDateTime#818278, 1970-01-01 00:00:00), isnull(deliveryDateTime#818278)]
Right keys [10]: [coalesce(supplierGroup#818288, ), isnull(supplierGroup#818288), coalesce(supplier#818283, ), isnull(supplier#818283), coalesce(effectiveSubrange#818303, ), isnull(effectiveSubrange#818303), coalesce(plant#818285, ), isnull(plant#818285), coalesce(deliveryDateTime#818286, 1970-01-01 00:00:00), isnull(deliveryDateTime#818286)]
Join type: LeftOuter
Join condition: None
(31) Project [codegen id : 6]
Output [8]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, CASE WHEN isnull(orderGroupCriteria#818296) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#818296 END AS orderGroupCriteria#818315, orderGroupingProfile#818287, coalesce(supplierGroup#818275, supplier#818276) AS supplierOrGroup#818304, coalesce(locationGroup#818289, plant#818277) AS locationOrGroup#818305]
Input [14]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
(32) Project [codegen id : 6]
Output [14]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, orderGroupCriteria#818315.supplierSubrange AS _extract_supplierSubrange#818452, orderGroupCriteria#818315.mrpController AS _extract_mrpController#818453, orderGroupCriteria#818315.purchasingOrg AS _extract_purchasingOrg#818454, orderGroupCriteria#818315.orderDate AS _extract_orderDate#818455, orderGroupCriteria#818315.deliveryDate AS _extract_deliveryDate#818456, orderGroupCriteria#818315.supplier AS _extract_supplier#818457, orderGroupCriteria#818315.purchasingGroup AS _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305]
Input [8]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, orderGroupCriteria#818315, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305]
(33) Generate [codegen id : 6]
Input [14]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, _extract_supplierSubrange#818452, _extract_mrpController#818453, _extract_purchasingOrg#818454, _extract_orderDate#818455, _extract_deliveryDate#818456, _extract_supplier#818457, _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305]
Arguments: explode(productOrderSchedule#818282), [plant#818277, deliveryDateTime#818278, effectiveSubrange#818302, _extract_supplierSubrange#818452, _extract_mrpController#818453, _extract_purchasingOrg#818454, _extract_orderDate#818455, _extract_deliveryDate#818456, _extract_supplier#818457, _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305], false, [productOrderScheduleExploded#818327]
(34) Project [codegen id : 6]
Output [5]: [plant#818277, productOrderScheduleExploded#818327.product AS product#818328, productOrderScheduleExploded#818327.orderDateTime AS orderDateTime#818329, productOrderScheduleExploded#818327.availabilityDateTime AS availabilityDateTime#818330, xxhash64(CASE WHEN (_extract_supplierSubrange#818452 <=> true) THEN effectiveSubrange#818302 END, orderGroupingProfile#818287, CASE WHEN (_extract_mrpController#818453 <=> true) THEN productOrderScheduleExploded#818327.mrpController END, CASE WHEN (_extract_purchasingOrg#818454 <=> true) THEN productOrderScheduleExploded#818327.purchasingOrg END, CASE WHEN (_extract_orderDate#818455 <=> true) THEN productOrderScheduleExploded#818327.orderDateTime END, CASE WHEN (_extract_deliveryDate#818456 <=> true) THEN deliveryDateTime#818278 END, CASE WHEN (_extract_supplier#818457 <=> true) THEN supplierOrGroup#818304 END, locationOrGroup#818305, CASE WHEN (_extract_purchasingGroup#818458 <=> true) THEN productOrderScheduleExploded#818327.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#818302) AND (_extract_supplierSubrange#818452 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#818287) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.mrpController) AND (_extract_mrpController#818453 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.purchasingOrg) AND (_extract_purchasingOrg#818454 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.orderDateTime) AND (_extract_orderDate#818455 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#818278) AND (_extract_deliveryDate#818456 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#818304) AND (_extract_supplier#818457 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#818305) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.purchasingGroup) AND (_extract_purchasingGroup#818458 <=> true)) THEN 256 ELSE 0 END), 10000002109, 42) AS orderProposalId#818363L]
Input [14]: [plant#818277, deliveryDateTime#818278, effectiveSubrange#818302, _extract_supplierSubrange#818452, _extract_mrpController#818453, _extract_purchasingOrg#818454, _extract_orderDate#818455, _extract_deliveryDate#818456, _extract_supplier#818457, _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305, productOrderScheduleExploded#818327]
(35) Exchange
Input [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: hashpartitioning(product#818328, plant#818277, 25), ENSURE_REQUIREMENTS, [plan_id=321491]
(36) ShuffleQueryStage
Output [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: 7
(37) AQEShuffleRead
Input [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: coalesced
(38) Sort [codegen id : 7]
Input [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: [product#818328 ASC NULLS FIRST, plant#818277 ASC NULLS FIRST, availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST], false, 0
(39) Window
Input [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: [lag(orderProposalId#818363L, -1, null) windowspecdefinition(product#818328, plant#818277, availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#818392L], [product#818328, plant#818277], [availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST]
(40) Project [codegen id : 8]
Output [3]: [plant#818277, orderProposalId#818363L, previousOrderProposal#818392L]
Input [6]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L, previousOrderProposal#818392L]
(41) ObjectHashAggregate
Input [3]: [plant#818277, orderProposalId#818363L, previousOrderProposal#818392L]
Keys [1]: [orderProposalId#818363L]
Functions [2]: [partial_min(plant#818277), partial_collect_set(previousOrderProposal#818392L, 0, 0)]
Aggregate Attributes [2]: [min#818716, buf#818717]
Results [3]: [orderProposalId#818363L, min#818718, buf#818719]
(42) Exchange
Input [3]: [orderProposalId#818363L, min#818718, buf#818719]
Arguments: hashpartitioning(orderProposalId#818363L, 25), ENSURE_REQUIREMENTS, [plan_id=321589]
(43) ShuffleQueryStage
Output [3]: [orderProposalId#818363L, min#818718, buf#818719]
Arguments: 8
(44) AQEShuffleRead
Input [3]: [orderProposalId#818363L, min#818718, buf#818719]
Arguments: coalesced
(45) ObjectHashAggregate
Input [3]: [orderProposalId#818363L, min#818718, buf#818719]
Keys [1]: [orderProposalId#818363L]
Functions [2]: [min(plant#818277), collect_set(previousOrderProposal#818392L, 0, 0)]
Aggregate Attributes [2]: [min(plant#818277)#818415, collect_set(previousOrderProposal#818392L, 0, 0)#818416]
Results [4]: [orderProposalId#818363L, min(plant#818277)#818415 AS plant#818393, collect_set(previousOrderProposal#818392L, 0, 0)#818416 AS previousOrderProposals#818394, orderProposalId#818363L AS nodeId#818417L]
(46) Project [codegen id : 9]
Output [5]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, previousOrderProposals#818394 AS dependentOnNodeIds#818418]
Input [4]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L]
(47) Exchange
Input [5]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, dependentOnNodeIds#818418]
Arguments: hashpartitioning(plant#818393, 25), REPARTITION_BY_COL, [plan_id=321641]
(48) ShuffleQueryStage
Output [5]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, dependentOnNodeIds#818418]
Arguments: 9
(49) DeserializeToObject
Input [5]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, dependentOnNodeIds#818418]
Arguments: createexternalrow(static_invoke(java.lang.Long.valueOf(orderProposalId#818363L)), invoke(plant#818393.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#818394, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#818417L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#818418, 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#818429: org.apache.spark.sql.Row
(50) MapPartitions
Input [1]: [obj#818429]
Arguments: org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@4e5e4601, obj#818437: org.apache.spark.sql.Row
(51) SerializeFromObject [codegen id : 10]
Input [1]: [obj#818437]
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#818445L, 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#818446, 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#818447, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#818448L, 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#818449, 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#818450L, 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#818451]
(52) ResultQueryStage
Output [7]: [orderProposalId#818445L, plant#818446, previousOrderProposals#818447, nodeId#818448L, dependentOnNodeIds#818449, clusterId#818450L, unresolvedDependencies#818451]
Arguments: 10
(53) Filter
Input [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
Condition : ((size(productOrderSchedule#818282, true) > 0) AND isnotnull(productOrderSchedule#818282))
(54) Exchange
Input [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320499]
(55) Project
Output [6]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, CASE WHEN isnotnull(supplyingPlant#818280) THEN productGroup#818281 ELSE subrange#818279 END AS effectiveSubrange#818302]
Input [8]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, subrange#818279, supplyingPlant#818280, productGroup#818281, productOrderSchedule#818282]
(56) Exchange
Input [6]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302]
Arguments: hashpartitioning(coalesce(supplierGroup#818275, ), isnull(supplierGroup#818275), coalesce(supplier#818276, ), isnull(supplier#818276), coalesce(effectiveSubrange#818302, ), isnull(effectiveSubrange#818302), coalesce(plant#818277, ), isnull(plant#818277), coalesce(deliveryDateTime#818278, 1970-01-01 00:00:00), isnull(deliveryDateTime#818278), 25), ENSURE_REQUIREMENTS, [plan_id=320523]
(57) Sort
Input [6]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302]
Arguments: [coalesce(supplierGroup#818275, ) ASC NULLS FIRST, isnull(supplierGroup#818275) ASC NULLS FIRST, coalesce(supplier#818276, ) ASC NULLS FIRST, isnull(supplier#818276) ASC NULLS FIRST, coalesce(effectiveSubrange#818302, ) ASC NULLS FIRST, isnull(effectiveSubrange#818302) ASC NULLS FIRST, coalesce(plant#818277, ) ASC NULLS FIRST, isnull(plant#818277) ASC NULLS FIRST, coalesce(deliveryDateTime#818278, 1970-01-01 00:00:00) ASC NULLS FIRST, isnull(deliveryDateTime#818278) ASC NULLS FIRST], false, 0
(58) Exchange
Input [7]: [supplier#818283, subrange#818284, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320477]
(59) Filter
Input [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Condition : isnotnull(orderGroupingProfile#818294)
(60) Exchange
Input [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Arguments: RoundRobinPartitioning(25), REPARTITION_BY_NUM, [plan_id=320501]
(61) BroadcastExchange
Input [2]: [orderGroupingProfile#818294, orderGroupCriteria#818296]
Arguments: HashedRelationBroadcastMode(List(input[0, string, false]),false), [plan_id=320518]
(62) BroadcastHashJoin
Left keys [1]: [orderGroupingProfile#818287]
Right keys [1]: [orderGroupingProfile#818294]
Join type: LeftOuter
Join condition: None
(63) Project
Output [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, subrange#818284 AS effectiveSubrange#818303]
Input [9]: [supplier#818283, subrange#818284, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupingProfile#818294, orderGroupCriteria#818296]
(64) Exchange
Input [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
Arguments: hashpartitioning(coalesce(supplierGroup#818288, ), isnull(supplierGroup#818288), coalesce(supplier#818283, ), isnull(supplier#818283), coalesce(effectiveSubrange#818303, ), isnull(effectiveSubrange#818303), coalesce(plant#818285, ), isnull(plant#818285), coalesce(deliveryDateTime#818286, 1970-01-01 00:00:00), isnull(deliveryDateTime#818286), 25), ENSURE_REQUIREMENTS, [plan_id=320524]
(65) Sort
Input [8]: [supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
Arguments: [coalesce(supplierGroup#818288, ) ASC NULLS FIRST, isnull(supplierGroup#818288) ASC NULLS FIRST, coalesce(supplier#818283, ) ASC NULLS FIRST, isnull(supplier#818283) ASC NULLS FIRST, coalesce(effectiveSubrange#818303, ) ASC NULLS FIRST, isnull(effectiveSubrange#818303) ASC NULLS FIRST, coalesce(plant#818285, ) ASC NULLS FIRST, isnull(plant#818285) ASC NULLS FIRST, coalesce(deliveryDateTime#818286, 1970-01-01 00:00:00) ASC NULLS FIRST, isnull(deliveryDateTime#818286) ASC NULLS FIRST], false, 0
(66) SortMergeJoin
Left keys [10]: [coalesce(supplierGroup#818275, ), isnull(supplierGroup#818275), coalesce(supplier#818276, ), isnull(supplier#818276), coalesce(effectiveSubrange#818302, ), isnull(effectiveSubrange#818302), coalesce(plant#818277, ), isnull(plant#818277), coalesce(deliveryDateTime#818278, 1970-01-01 00:00:00), isnull(deliveryDateTime#818278)]
Right keys [10]: [coalesce(supplierGroup#818288, ), isnull(supplierGroup#818288), coalesce(supplier#818283, ), isnull(supplier#818283), coalesce(effectiveSubrange#818303, ), isnull(effectiveSubrange#818303), coalesce(plant#818285, ), isnull(plant#818285), coalesce(deliveryDateTime#818286, 1970-01-01 00:00:00), isnull(deliveryDateTime#818286)]
Join type: LeftOuter
Join condition: None
(67) Project
Output [8]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, CASE WHEN isnull(orderGroupCriteria#818296) THEN [true,false,false,false,true,false,false,false] ELSE orderGroupCriteria#818296 END AS orderGroupCriteria#818315, orderGroupingProfile#818287, coalesce(supplierGroup#818275, supplier#818276) AS supplierOrGroup#818304, coalesce(locationGroup#818289, plant#818277) AS locationOrGroup#818305]
Input [14]: [supplierGroup#818275, supplier#818276, plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, supplier#818283, plant#818285, deliverydatetime#818286, ordergroupingprofile#818287, supplierGroup#818288, locationGroup#818289, orderGroupCriteria#818296, effectiveSubrange#818303]
(68) Project
Output [14]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, orderGroupCriteria#818315.supplierSubrange AS _extract_supplierSubrange#818452, orderGroupCriteria#818315.mrpController AS _extract_mrpController#818453, orderGroupCriteria#818315.purchasingOrg AS _extract_purchasingOrg#818454, orderGroupCriteria#818315.orderDate AS _extract_orderDate#818455, orderGroupCriteria#818315.deliveryDate AS _extract_deliveryDate#818456, orderGroupCriteria#818315.supplier AS _extract_supplier#818457, orderGroupCriteria#818315.purchasingGroup AS _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305]
Input [8]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, orderGroupCriteria#818315, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305]
(69) Generate
Input [14]: [plant#818277, deliveryDateTime#818278, productOrderSchedule#818282, effectiveSubrange#818302, _extract_supplierSubrange#818452, _extract_mrpController#818453, _extract_purchasingOrg#818454, _extract_orderDate#818455, _extract_deliveryDate#818456, _extract_supplier#818457, _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305]
Arguments: explode(productOrderSchedule#818282), [plant#818277, deliveryDateTime#818278, effectiveSubrange#818302, _extract_supplierSubrange#818452, _extract_mrpController#818453, _extract_purchasingOrg#818454, _extract_orderDate#818455, _extract_deliveryDate#818456, _extract_supplier#818457, _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305], false, [productOrderScheduleExploded#818327]
(70) Project
Output [5]: [plant#818277, productOrderScheduleExploded#818327.product AS product#818328, productOrderScheduleExploded#818327.orderDateTime AS orderDateTime#818329, productOrderScheduleExploded#818327.availabilityDateTime AS availabilityDateTime#818330, xxhash64(CASE WHEN (_extract_supplierSubrange#818452 <=> true) THEN effectiveSubrange#818302 END, orderGroupingProfile#818287, CASE WHEN (_extract_mrpController#818453 <=> true) THEN productOrderScheduleExploded#818327.mrpController END, CASE WHEN (_extract_purchasingOrg#818454 <=> true) THEN productOrderScheduleExploded#818327.purchasingOrg END, CASE WHEN (_extract_orderDate#818455 <=> true) THEN productOrderScheduleExploded#818327.orderDateTime END, CASE WHEN (_extract_deliveryDate#818456 <=> true) THEN deliveryDateTime#818278 END, CASE WHEN (_extract_supplier#818457 <=> true) THEN supplierOrGroup#818304 END, locationOrGroup#818305, CASE WHEN (_extract_purchasingGroup#818458 <=> true) THEN productOrderScheduleExploded#818327.purchasingGroup END, ((((((((CASE WHEN (isnull(effectiveSubrange#818302) AND (_extract_supplierSubrange#818452 <=> true)) THEN 1 ELSE 0 END + CASE WHEN isnull(orderGroupingProfile#818287) THEN 2 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.mrpController) AND (_extract_mrpController#818453 <=> true)) THEN 4 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.purchasingOrg) AND (_extract_purchasingOrg#818454 <=> true)) THEN 8 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.orderDateTime) AND (_extract_orderDate#818455 <=> true)) THEN 16 ELSE 0 END) + CASE WHEN (isnull(deliveryDateTime#818278) AND (_extract_deliveryDate#818456 <=> true)) THEN 32 ELSE 0 END) + CASE WHEN (isnull(supplierOrGroup#818304) AND (_extract_supplier#818457 <=> true)) THEN 64 ELSE 0 END) + CASE WHEN isnull(locationOrGroup#818305) THEN 128 ELSE 0 END) + CASE WHEN (isnull(productOrderScheduleExploded#818327.purchasingGroup) AND (_extract_purchasingGroup#818458 <=> true)) THEN 256 ELSE 0 END), 10000002109, 42) AS orderProposalId#818363L]
Input [14]: [plant#818277, deliveryDateTime#818278, effectiveSubrange#818302, _extract_supplierSubrange#818452, _extract_mrpController#818453, _extract_purchasingOrg#818454, _extract_orderDate#818455, _extract_deliveryDate#818456, _extract_supplier#818457, _extract_purchasingGroup#818458, orderGroupingProfile#818287, supplierOrGroup#818304, locationOrGroup#818305, productOrderScheduleExploded#818327]
(71) Exchange
Input [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: hashpartitioning(product#818328, plant#818277, 25), ENSURE_REQUIREMENTS, [plan_id=320533]
(72) Sort
Input [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: [product#818328 ASC NULLS FIRST, plant#818277 ASC NULLS FIRST, availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST], false, 0
(73) Window
Input [5]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L]
Arguments: [lag(orderProposalId#818363L, -1, null) windowspecdefinition(product#818328, plant#818277, availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST, specifiedwindowframe(RowFrame, -1, -1)) AS previousOrderProposal#818392L], [product#818328, plant#818277], [availabilityDateTime#818330 ASC NULLS FIRST, orderDateTime#818329 ASC NULLS FIRST, orderProposalId#818363L ASC NULLS FIRST]
(74) Project
Output [3]: [plant#818277, orderProposalId#818363L, previousOrderProposal#818392L]
Input [6]: [plant#818277, product#818328, orderDateTime#818329, availabilityDateTime#818330, orderProposalId#818363L, previousOrderProposal#818392L]
(75) ObjectHashAggregate
Input [3]: [plant#818277, orderProposalId#818363L, previousOrderProposal#818392L]
Keys [1]: [orderProposalId#818363L]
Functions [2]: [partial_min(plant#818277), partial_collect_set(previousOrderProposal#818392L, 0, 0)]
Aggregate Attributes [2]: [min#818716, buf#818717]
Results [3]: [orderProposalId#818363L, min#818718, buf#818719]
(76) Exchange
Input [3]: [orderProposalId#818363L, min#818718, buf#818719]
Arguments: hashpartitioning(orderProposalId#818363L, 25), ENSURE_REQUIREMENTS, [plan_id=320539]
(77) ObjectHashAggregate
Input [3]: [orderProposalId#818363L, min#818718, buf#818719]
Keys [1]: [orderProposalId#818363L]
Functions [2]: [min(plant#818277), collect_set(previousOrderProposal#818392L, 0, 0)]
Aggregate Attributes [2]: [min(plant#818277)#818415, collect_set(previousOrderProposal#818392L, 0, 0)#818416]
Results [4]: [orderProposalId#818363L, min(plant#818277)#818415 AS plant#818393, collect_set(previousOrderProposal#818392L, 0, 0)#818416 AS previousOrderProposals#818394, orderProposalId#818363L AS nodeId#818417L]
(78) Project
Output [5]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, previousOrderProposals#818394 AS dependentOnNodeIds#818418]
Input [4]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L]
(79) Exchange
Input [5]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, dependentOnNodeIds#818418]
Arguments: hashpartitioning(plant#818393, 25), REPARTITION_BY_COL, [plan_id=320542]
(80) DeserializeToObject
Input [5]: [orderProposalId#818363L, plant#818393, previousOrderProposals#818394, nodeId#818417L, dependentOnNodeIds#818418]
Arguments: createexternalrow(static_invoke(java.lang.Long.valueOf(orderProposalId#818363L)), invoke(plant#818393.toString()), mapobjects(lambdavariable(MapObject, LongType, false, -4), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -4))), previousOrderProposals#818394, Some(class scala.collection.mutable.ArraySeq)), static_invoke(java.lang.Long.valueOf(nodeId#818417L)), mapobjects(lambdavariable(MapObject, LongType, false, -5), static_invoke(java.lang.Long.valueOf(lambdavariable(MapObject, LongType, false, -5))), dependentOnNodeIds#818418, 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#818429: org.apache.spark.sql.Row
(81) MapPartitions
Input [1]: [obj#818429]
Arguments: org.apache.spark.sql.internal.ToScalaUDF$$$Lambda/0x00000008021bcd18@4e5e4601, obj#818437: org.apache.spark.sql.Row
(82) SerializeFromObject
Input [1]: [obj#818437]
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#818445L, 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#818446, 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#818447, assertnotnull(invoke(validateexternaltype(getexternalrowfield(assertnotnull(input[0, org.apache.spark.sql.Row, true]), 3, nodeId), LongType, ObjectType(class java.lang.Long)).longValue())) AS nodeId#818448L, 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#818449, 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#818450L, 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#818451]
(83) AdaptiveSparkPlan
Output [7]: [orderProposalId#818445L, plant#818446, previousOrderProposals#818447, nodeId#818448L, dependentOnNodeIds#818449, clusterId#818450L, unresolvedDependencies#818451]
Arguments: isFinalPlan=true
(84) TableCacheQueryStage
Output [1]: [unresolvedDependencies#818451]
Arguments: 0
(85) Filter [codegen id : 1]
Input [1]: [unresolvedDependencies#818451]
Condition : (size(unresolvedDependencies#818451, true) > 0)
(86) Project [codegen id : 1]
Output: []
Input [1]: [unresolvedDependencies#818451]
(87) CollectLimit
Input: []
Arguments: 1
(88) ResultQueryStage
Output: []
Arguments: 1
(89) Filter
Input [1]: [unresolvedDependencies#818451]
Condition : (size(unresolvedDependencies#818451, true) > 0)
(90) Project
Output: []
Input [1]: [unresolvedDependencies#818451]
(91) CollectLimit
Input: []
Arguments: 1
(92) AdaptiveSparkPlan
Output: []
Arguments: isFinalPlan=true