== Physical Plan ==
AdaptiveSparkPlan (12)
+- == Final Plan ==
* HashAggregate (8)
+- ShuffleQueryStage (7), Statistics(sizeInBytes=16.0 B, rowCount=1)
+- Exchange (6)
+- * HashAggregate (5)
+- TableCacheQueryStage (4), Statistics(sizeInBytes=6.5 MiB, rowCount=1.00E+4)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- Scan JDBCRelation((SELECT * FROM dbo.fact_trans_chain_po_detail WHERE bigid BETWEEN 20001 AND 30000) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
HashAggregate (11)
+- Exchange (10)
+- HashAggregate (9)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- Scan JDBCRelation((SELECT * FROM dbo.fact_trans_chain_po_detail WHERE bigid BETWEEN 20001 AND 30000) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [po_item_product_code#13166644, po_item_product_name#13166645, transaction_id#13166646, buyer_gln#13166647, seller_gln#13166648, pod_division#13166649, pod_delivery_date#13166650, pod_product_item_id#13166651, pod_product_entity#13166652, po_number#13166653, product_item_id#13166654, product_entity#13166655, brand_context_id#13166656, po_division#13166657, po_delivery_date#13166658, row_id#13166659L, parent_row_id#13166660, chain_seq#13166661, tier#13166662, production_input_type#13166663, trans_create_ts#13166664, trans_update_ts#13166665, outbound_create_ts#13166666, outbound_supplier_code#13166667, ... 111 more fields], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@730ae8bf,StorageLevel(disk, memory, deserialized, 1 replicas),Scan JDBCRelation((SELECT * FROM dbo.fact_trans_chain_po_detail WHERE bigid BETWEEN 20001 AND 30000) AS page) [numPartitions=1] [po_item_product_code#13166644,po_item_product_name#13166645,transaction_id#13166646,buyer_gln#13166647,seller_gln#13166648,pod_division#13166649,pod_delivery_date#13166650,pod_product_item_id#13166651,pod_product_entity#13166652,po_number#13166653,product_item_id#13166654,product_entity#13166655,brand_context_id#13166656,po_division#13166657,po_delivery_date#13166658,row_id#13166659L,parent_row_id#13166660,chain_seq#13166661,tier#13166662,production_input_type#13166663,trans_create_ts#13166664,trans_update_ts#13166665,outbound_create_ts#13166666,outbound_supplier_code#13166667,... 111 more fields] PushedFilters: [], ReadSchema: struct<po_item_product_code:string,po_item_product_name:string,transaction_id:string,buyer_gln:st...
,None)
(3) Scan JDBCRelation((SELECT * FROM dbo.fact_trans_chain_po_detail WHERE bigid BETWEEN 20001 AND 30000) AS page) [numPartitions=1]
Output [135]: [po_item_product_code#13166644, po_item_product_name#13166645, transaction_id#13166646, buyer_gln#13166647, seller_gln#13166648, pod_division#13166649, pod_delivery_date#13166650, pod_product_item_id#13166651, pod_product_entity#13166652, po_number#13166653, product_item_id#13166654, product_entity#13166655, brand_context_id#13166656, po_division#13166657, po_delivery_date#13166658, row_id#13166659L, parent_row_id#13166660, chain_seq#13166661, tier#13166662, production_input_type#13166663, trans_create_ts#13166664, trans_update_ts#13166665, outbound_create_ts#13166666, outbound_supplier_code#13166667, outbound_supplier_name#13166668, outbound_trans_date#13166669, outbound_quantity#13166670, outbound_quantity_unit#13166671, outbound_seller_uom_quantity#13166672, outbound_seller_uom_unit#13166673, production_facility_uid#13166674, production_facility_name#13166675, production_facility_country#13166676, production_lot_id#13166677, production_trans_date#13166678, production_quantity#13166679, production_quantity_unit#13166680, production_seller_uom_quantity#13166681, production_seller_uom_unit#13166682, production_product_type#13166683, production_product_code#13166684, production_product_name#13166685, production_inputlot_quantity#13166686, production_inputlot_unit#13166687, production_inputlot_uom_quantity#13166688, production_inputlot_uom_quantity_unit#13166689, IP_P_facility_uid#13166690, IP_P_facility_name#13166691, IP_P_facility_country#13166692, IP_P_product_type#13166693, IP_P_lot_id#13166694, IP_P_trans_date#13166695, IP_P_output_quantity#13166696, IP_P_seller_uom_quantity#13166697, IP_P_seller_uom_quantity_unit#13166698, IP_P_inputlot_quantity#13166699, IP_P_inputlot_product_uid#13166700, PPI_product_name#13166701, IP_P_inputlot_supplier_facility_uid#13166702, IP_P_Supplier_facility_name#13166703, IP_P_Supplier_facility_country#13166704, IP_P_inputlot_id#13166705, IP_P_I_facility_uid#13166706, IP_P_I_facility_name#13166707, IP_P_I_facility_country#13166708, IP_P_I_transdate#13166709, IP_P_I_quantity#13166710, IP_P__IQuanaity_Unit_Desc#13166711, IP_P_Business_Document_Number#13166712, IP_P_output_product_uid#13166713, IP_P_product_ProductName#13166714, IP_P_product_ProductType#13166715, Inbound_Seller_UID#13166716, Inbound_Seller_Name#13166717, IP_P_I_profile_uid#13166718, IP_P_I_profile_name#13166719, IP_P_MaterialComp#13166720, IP_P_inputlot_supplier_uom_quantity#13166721, IP_P_inputlot_supplier_uom_unit#13166722, inbound_id#13166723, inbound_create_ts#13166724, inbound_trans_type#13166725, inbound_status#13166726, inbound_product_code#13166727, inbound_product_name#13166728, inbound_supplier_uid#13166729, inbound_Supplier_Name#13166730, inbound_supplier_facility_uid#13166731, inbound_supplier_facility_name#13166732, inbound_supplier_facility_country#13166733, inbound_seller_lot_id#13166734, inbound_facility_uid#13166735, inbound_facility_country#13166736, inbound_facility_name#13166737, inbound_trans_date#13166738, inbound_quantity#13166739, inbound_quantity_unit#13166740, inbound_seller_uom_quantity#13166741, inbound_seller_uom_unit#13166742, input_material_composition#13166743, inbound_business_document_number#13166744, inbound_document_yes_no#13166745, inter_production_facility_uid#13166746, inter_production_facility_name#13166747, inter_production_facility_country#13166748, inter_production_article_type_id#13166749, inter_production_material_unique_code#13166750, inter_production_internal_article_name#13166751, inter_production_lot_id#13166752, inter_production_trans_date#13166753, inter_production_output_quantity#13166754, inter_production_output_unit#13166755, inter_production_material#13166756, inter_production_input_quantity#13166757, inter_production_input_unit#13166758, inter_pod_input_product_code#13166759, inter_pod_input_product_name#13166760, inter_pod_inbound_reference_id#13166761, inter_pod_inbound_Supplier_Name#13166762, inter_pod_inbound_supplier_facility_uid#13166763, inter_pod_supplier_facility_name#13166764, inter_pod_address_country#13166765, inter_pod_inbound_seller_lot_id#13166766, inter_pod_inbound_facility_uid#13166767, inter_pod_inbound_facility_country#13166768, inter_pod_inbound_facility_name#13166769, inter_pod_inbound_trans_date#13166770, inter_pod_inbound_quantity#13166771, inter_pod_inbound_unit#13166772, inter_pod_inbound_seller_uom_quantity#13166773, inter_pod_inbound_seller_uom_unit#13166774, inter_pod_input_material_composition#13166775, inter_pod_business_document_number#13166776, inter_pod_inbound_document_yes_no#13166777, bigid#13166778L]
ReadSchema: struct<po_item_product_code:string,po_item_product_name:string,transaction_id:string,buyer_gln:string,seller_gln:string,pod_division:string,pod_delivery_date:date,pod_product_item_id:string,pod_product_entity:string,po_number:string,product_item_id:string,product_entity:string,brand_context_id:string,po_division:string,po_delivery_date:date,row_id:bigint,parent_row_id:int,chain_seq:string,tier:string,production_input_type:string,trans_create_ts:string,trans_update_ts:string,outbound_create_ts:date,outbound_supplier_code:string,outbound_supplier_name:string,outbound_trans_date:date,outbound_quantity:string,outbound_quantity_unit:string,outbound_seller_uom_quantity:string,outbound_seller_uom_unit:string,production_facility_uid:string,production_facility_name:string,production_facility_country:string,production_lot_id:string,production_trans_date:date,production_quantity:double,production_quantity_unit:string,production_seller_uom_quantity:string,production_seller_uom_unit:string,production_product_type:string,production_product_code:string,production_product_name:string,production_inputlot_quantity:double,production_inputlot_unit:string,production_inputlot_uom_quantity:string,production_inputlot_uom_quantity_unit:string,IP_P_facility_uid:string,IP_P_facility_name:string,IP_P_facility_country:string,IP_P_product_type:string,IP_P_lot_id:string,IP_P_trans_date:date,IP_P_output_quantity:double,IP_P_seller_uom_quantity:string,IP_P_seller_uom_quantity_unit:string,IP_P_inputlot_quantity:string,IP_P_inputlot_product_uid:string,PPI_product_name:string,IP_P_inputlot_supplier_facility_uid:string,IP_P_Supplier_facility_name:string,IP_P_Supplier_facility_country:string,IP_P_inputlot_id:string,IP_P_I_facility_uid:string,IP_P_I_facility_name:string,IP_P_I_facility_country:string,IP_P_I_transdate:date,IP_P_I_quantity:double,IP_P__IQuanaity_Unit_Desc:string,IP_P_Business_Document_Number:string,IP_P_output_product_uid:string,IP_P_product_ProductName:string,IP_P_product_ProductType:string,Inbound_Seller_UID:string,Inbound_Seller_Name:string,IP_P_I_profile_uid:string,IP_P_I_profile_name:string,IP_P_MaterialComp:string,IP_P_inputlot_supplier_uom_quantity:string,IP_P_inputlot_supplier_uom_unit:string,inbound_id:string,inbound_create_ts:string,inbound_trans_type:string,inbound_status:string,inbound_product_code:string,inbound_product_name:string,inbound_supplier_uid:string,inbound_Supplier_Name:string,inbound_supplier_facility_uid:string,inbound_supplier_facility_name:string,inbound_supplier_facility_country:string,inbound_seller_lot_id:string,inbound_facility_uid:string,inbound_facility_country:string,inbound_facility_name:string,inbound_trans_date:date,inbound_quantity:double,inbound_quantity_unit:string,inbound_seller_uom_quantity:string,inbound_seller_uom_unit:string,input_material_composition:string,inbound_business_document_number:string,inbound_document_yes_no:string,inter_production_facility_uid:string,inter_production_facility_name:string,inter_production_facility_country:string,inter_production_article_type_id:string,inter_production_material_unique_code:string,inter_production_internal_article_name:string,inter_production_lot_id:string,inter_production_trans_date:date,inter_production_output_quantity:double,inter_production_output_unit:string,inter_production_material:string,inter_production_input_quantity:double,inter_production_input_unit:string,inter_pod_input_product_code:string,inter_pod_input_product_name:string,inter_pod_inbound_reference_id:string,inter_pod_inbound_Supplier_Name:string,inter_pod_inbound_supplier_facility_uid:string,inter_pod_supplier_facility_name:string,inter_pod_address_country:string,inter_pod_inbound_seller_lot_id:string,inter_pod_inbound_facility_uid:string,inter_pod_inbound_facility_country:string,inter_pod_inbound_facility_name:string,inter_pod_inbound_trans_date:date,inter_pod_inbound_quantity:double,inter_pod_inbound_unit:string,inter_pod_inbound_seller_uom_quantity:string,inter_pod_inbound_seller_uom_unit:string,inter_pod_input_material_composition:string,inter_pod_business_document_number:string,inter_pod_inbound_document_yes_no:string,bigid:bigint>
(4) TableCacheQueryStage
Output: []
Arguments: 0
(5) HashAggregate [codegen id : 1]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#13169752L]
Results [1]: [count#13169753L]
(6) Exchange
Input [1]: [count#13169753L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4055398]
(7) ShuffleQueryStage
Output [1]: [count#13169753L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#13169753L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#13167724L]
Results [1]: [count(1)#13167724L AS count#13167725L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#13169752L]
Results [1]: [count#13169753L]
(10) Exchange
Input [1]: [count#13169753L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4055336]
(11) HashAggregate
Input [1]: [count#13169753L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#13167724L]
Results [1]: [count(1)#13167724L AS count#13167725L]
(12) AdaptiveSparkPlan
Output [1]: [count#13167725L]
Arguments: isFinalPlan=true