== 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=4.2 MiB, rowCount=6.56E+3)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- Scan JDBCRelation((SELECT * FROM dbo.fact_trans_chain_po_detail WHERE bigid BETWEEN 60001 AND 66563) 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 60001 AND 66563) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [po_item_product_code#12280194, po_item_product_name#12280195, transaction_id#12280196, buyer_gln#12280197, seller_gln#12280198, pod_division#12280199, pod_delivery_date#12280200, pod_product_item_id#12280201, pod_product_entity#12280202, po_number#12280203, product_item_id#12280204, product_entity#12280205, brand_context_id#12280206, po_division#12280207, po_delivery_date#12280208, row_id#12280209L, parent_row_id#12280210, chain_seq#12280211, tier#12280212, production_input_type#12280213, trans_create_ts#12280214, trans_update_ts#12280215, outbound_create_ts#12280216, outbound_supplier_code#12280217, ... 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 60001 AND 66563) AS page) [numPartitions=1] [po_item_product_code#12280194,po_item_product_name#12280195,transaction_id#12280196,buyer_gln#12280197,seller_gln#12280198,pod_division#12280199,pod_delivery_date#12280200,pod_product_item_id#12280201,pod_product_entity#12280202,po_number#12280203,product_item_id#12280204,product_entity#12280205,brand_context_id#12280206,po_division#12280207,po_delivery_date#12280208,row_id#12280209L,parent_row_id#12280210,chain_seq#12280211,tier#12280212,production_input_type#12280213,trans_create_ts#12280214,trans_update_ts#12280215,outbound_create_ts#12280216,outbound_supplier_code#12280217,... 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 60001 AND 66563) AS page) [numPartitions=1]
Output [135]: [po_item_product_code#12280194, po_item_product_name#12280195, transaction_id#12280196, buyer_gln#12280197, seller_gln#12280198, pod_division#12280199, pod_delivery_date#12280200, pod_product_item_id#12280201, pod_product_entity#12280202, po_number#12280203, product_item_id#12280204, product_entity#12280205, brand_context_id#12280206, po_division#12280207, po_delivery_date#12280208, row_id#12280209L, parent_row_id#12280210, chain_seq#12280211, tier#12280212, production_input_type#12280213, trans_create_ts#12280214, trans_update_ts#12280215, outbound_create_ts#12280216, outbound_supplier_code#12280217, outbound_supplier_name#12280218, outbound_trans_date#12280219, outbound_quantity#12280220, outbound_quantity_unit#12280221, outbound_seller_uom_quantity#12280222, outbound_seller_uom_unit#12280223, production_facility_uid#12280224, production_facility_name#12280225, production_facility_country#12280226, production_lot_id#12280227, production_trans_date#12280228, production_quantity#12280229, production_quantity_unit#12280230, production_seller_uom_quantity#12280231, production_seller_uom_unit#12280232, production_product_type#12280233, production_product_code#12280234, production_product_name#12280235, production_inputlot_quantity#12280236, production_inputlot_unit#12280237, production_inputlot_uom_quantity#12280238, production_inputlot_uom_quantity_unit#12280239, IP_P_facility_uid#12280240, IP_P_facility_name#12280241, IP_P_facility_country#12280242, IP_P_product_type#12280243, IP_P_lot_id#12280244, IP_P_trans_date#12280245, IP_P_output_quantity#12280246, IP_P_seller_uom_quantity#12280247, IP_P_seller_uom_quantity_unit#12280248, IP_P_inputlot_quantity#12280249, IP_P_inputlot_product_uid#12280250, PPI_product_name#12280251, IP_P_inputlot_supplier_facility_uid#12280252, IP_P_Supplier_facility_name#12280253, IP_P_Supplier_facility_country#12280254, IP_P_inputlot_id#12280255, IP_P_I_facility_uid#12280256, IP_P_I_facility_name#12280257, IP_P_I_facility_country#12280258, IP_P_I_transdate#12280259, IP_P_I_quantity#12280260, IP_P__IQuanaity_Unit_Desc#12280261, IP_P_Business_Document_Number#12280262, IP_P_output_product_uid#12280263, IP_P_product_ProductName#12280264, IP_P_product_ProductType#12280265, Inbound_Seller_UID#12280266, Inbound_Seller_Name#12280267, IP_P_I_profile_uid#12280268, IP_P_I_profile_name#12280269, IP_P_MaterialComp#12280270, IP_P_inputlot_supplier_uom_quantity#12280271, IP_P_inputlot_supplier_uom_unit#12280272, inbound_id#12280273, inbound_create_ts#12280274, inbound_trans_type#12280275, inbound_status#12280276, inbound_product_code#12280277, inbound_product_name#12280278, inbound_supplier_uid#12280279, inbound_Supplier_Name#12280280, inbound_supplier_facility_uid#12280281, inbound_supplier_facility_name#12280282, inbound_supplier_facility_country#12280283, inbound_seller_lot_id#12280284, inbound_facility_uid#12280285, inbound_facility_country#12280286, inbound_facility_name#12280287, inbound_trans_date#12280288, inbound_quantity#12280289, inbound_quantity_unit#12280290, inbound_seller_uom_quantity#12280291, inbound_seller_uom_unit#12280292, input_material_composition#12280293, inbound_business_document_number#12280294, inbound_document_yes_no#12280295, inter_production_facility_uid#12280296, inter_production_facility_name#12280297, inter_production_facility_country#12280298, inter_production_article_type_id#12280299, inter_production_material_unique_code#12280300, inter_production_internal_article_name#12280301, inter_production_lot_id#12280302, inter_production_trans_date#12280303, inter_production_output_quantity#12280304, inter_production_output_unit#12280305, inter_production_material#12280306, inter_production_input_quantity#12280307, inter_production_input_unit#12280308, inter_pod_input_product_code#12280309, inter_pod_input_product_name#12280310, inter_pod_inbound_reference_id#12280311, inter_pod_inbound_Supplier_Name#12280312, inter_pod_inbound_supplier_facility_uid#12280313, inter_pod_supplier_facility_name#12280314, inter_pod_address_country#12280315, inter_pod_inbound_seller_lot_id#12280316, inter_pod_inbound_facility_uid#12280317, inter_pod_inbound_facility_country#12280318, inter_pod_inbound_facility_name#12280319, inter_pod_inbound_trans_date#12280320, inter_pod_inbound_quantity#12280321, inter_pod_inbound_unit#12280322, inter_pod_inbound_seller_uom_quantity#12280323, inter_pod_inbound_seller_uom_unit#12280324, inter_pod_input_material_composition#12280325, inter_pod_business_document_number#12280326, inter_pod_inbound_document_yes_no#12280327, bigid#12280328L]
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#12283302L]
Results [1]: [count#12283303L]
(6) Exchange
Input [1]: [count#12283303L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4009450]
(7) ShuffleQueryStage
Output [1]: [count#12283303L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#12283303L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#12281274L]
Results [1]: [count(1)#12281274L AS count#12281275L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#12283302L]
Results [1]: [count#12283303L]
(10) Exchange
Input [1]: [count#12283303L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4009425]
(11) HashAggregate
Input [1]: [count#12283303L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#12281274L]
Results [1]: [count(1)#12281274L AS count#12281275L]
(12) AdaptiveSparkPlan
Output [1]: [count#12281275L]
Arguments: isFinalPlan=true