== 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 30001 AND 40000) 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 30001 AND 40000) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [po_item_product_code#14554435, po_item_product_name#14554436, transaction_id#14554437, buyer_gln#14554438, seller_gln#14554439, pod_division#14554440, pod_delivery_date#14554441, pod_product_item_id#14554442, pod_product_entity#14554443, po_number#14554444, product_item_id#14554445, product_entity#14554446, brand_context_id#14554447, po_division#14554448, po_delivery_date#14554449, row_id#14554450L, parent_row_id#14554451, chain_seq#14554452, tier#14554453, production_input_type#14554454, trans_create_ts#14554455, trans_update_ts#14554456, outbound_create_ts#14554457, outbound_supplier_code#14554458, ... 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 30001 AND 40000) AS page) [numPartitions=1] [po_item_product_code#14554435,po_item_product_name#14554436,transaction_id#14554437,buyer_gln#14554438,seller_gln#14554439,pod_division#14554440,pod_delivery_date#14554441,pod_product_item_id#14554442,pod_product_entity#14554443,po_number#14554444,product_item_id#14554445,product_entity#14554446,brand_context_id#14554447,po_division#14554448,po_delivery_date#14554449,row_id#14554450L,parent_row_id#14554451,chain_seq#14554452,tier#14554453,production_input_type#14554454,trans_create_ts#14554455,trans_update_ts#14554456,outbound_create_ts#14554457,outbound_supplier_code#14554458,... 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 30001 AND 40000) AS page) [numPartitions=1]
Output [135]: [po_item_product_code#14554435, po_item_product_name#14554436, transaction_id#14554437, buyer_gln#14554438, seller_gln#14554439, pod_division#14554440, pod_delivery_date#14554441, pod_product_item_id#14554442, pod_product_entity#14554443, po_number#14554444, product_item_id#14554445, product_entity#14554446, brand_context_id#14554447, po_division#14554448, po_delivery_date#14554449, row_id#14554450L, parent_row_id#14554451, chain_seq#14554452, tier#14554453, production_input_type#14554454, trans_create_ts#14554455, trans_update_ts#14554456, outbound_create_ts#14554457, outbound_supplier_code#14554458, outbound_supplier_name#14554459, outbound_trans_date#14554460, outbound_quantity#14554461, outbound_quantity_unit#14554462, outbound_seller_uom_quantity#14554463, outbound_seller_uom_unit#14554464, production_facility_uid#14554465, production_facility_name#14554466, production_facility_country#14554467, production_lot_id#14554468, production_trans_date#14554469, production_quantity#14554470, production_quantity_unit#14554471, production_seller_uom_quantity#14554472, production_seller_uom_unit#14554473, production_product_type#14554474, production_product_code#14554475, production_product_name#14554476, production_inputlot_quantity#14554477, production_inputlot_unit#14554478, production_inputlot_uom_quantity#14554479, production_inputlot_uom_quantity_unit#14554480, IP_P_facility_uid#14554481, IP_P_facility_name#14554482, IP_P_facility_country#14554483, IP_P_product_type#14554484, IP_P_lot_id#14554485, IP_P_trans_date#14554486, IP_P_output_quantity#14554487, IP_P_seller_uom_quantity#14554488, IP_P_seller_uom_quantity_unit#14554489, IP_P_inputlot_quantity#14554490, IP_P_inputlot_product_uid#14554491, PPI_product_name#14554492, IP_P_inputlot_supplier_facility_uid#14554493, IP_P_Supplier_facility_name#14554494, IP_P_Supplier_facility_country#14554495, IP_P_inputlot_id#14554496, IP_P_I_facility_uid#14554497, IP_P_I_facility_name#14554498, IP_P_I_facility_country#14554499, IP_P_I_transdate#14554500, IP_P_I_quantity#14554501, IP_P__IQuanaity_Unit_Desc#14554502, IP_P_Business_Document_Number#14554503, IP_P_output_product_uid#14554504, IP_P_product_ProductName#14554505, IP_P_product_ProductType#14554506, Inbound_Seller_UID#14554507, Inbound_Seller_Name#14554508, IP_P_I_profile_uid#14554509, IP_P_I_profile_name#14554510, IP_P_MaterialComp#14554511, IP_P_inputlot_supplier_uom_quantity#14554512, IP_P_inputlot_supplier_uom_unit#14554513, inbound_id#14554514, inbound_create_ts#14554515, inbound_trans_type#14554516, inbound_status#14554517, inbound_product_code#14554518, inbound_product_name#14554519, inbound_supplier_uid#14554520, inbound_Supplier_Name#14554521, inbound_supplier_facility_uid#14554522, inbound_supplier_facility_name#14554523, inbound_supplier_facility_country#14554524, inbound_seller_lot_id#14554525, inbound_facility_uid#14554526, inbound_facility_country#14554527, inbound_facility_name#14554528, inbound_trans_date#14554529, inbound_quantity#14554530, inbound_quantity_unit#14554531, inbound_seller_uom_quantity#14554532, inbound_seller_uom_unit#14554533, input_material_composition#14554534, inbound_business_document_number#14554535, inbound_document_yes_no#14554536, inter_production_facility_uid#14554537, inter_production_facility_name#14554538, inter_production_facility_country#14554539, inter_production_article_type_id#14554540, inter_production_material_unique_code#14554541, inter_production_internal_article_name#14554542, inter_production_lot_id#14554543, inter_production_trans_date#14554544, inter_production_output_quantity#14554545, inter_production_output_unit#14554546, inter_production_material#14554547, inter_production_input_quantity#14554548, inter_production_input_unit#14554549, inter_pod_input_product_code#14554550, inter_pod_input_product_name#14554551, inter_pod_inbound_reference_id#14554552, inter_pod_inbound_Supplier_Name#14554553, inter_pod_inbound_supplier_facility_uid#14554554, inter_pod_supplier_facility_name#14554555, inter_pod_address_country#14554556, inter_pod_inbound_seller_lot_id#14554557, inter_pod_inbound_facility_uid#14554558, inter_pod_inbound_facility_country#14554559, inter_pod_inbound_facility_name#14554560, inter_pod_inbound_trans_date#14554561, inter_pod_inbound_quantity#14554562, inter_pod_inbound_unit#14554563, inter_pod_inbound_seller_uom_quantity#14554564, inter_pod_inbound_seller_uom_unit#14554565, inter_pod_input_material_composition#14554566, inter_pod_business_document_number#14554567, inter_pod_inbound_document_yes_no#14554568, bigid#14554569L]
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#14557673L]
Results [1]: [count#14557674L]
(6) Exchange
Input [1]: [count#14557674L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4264186]
(7) ShuffleQueryStage
Output [1]: [count#14557674L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#14557674L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14555645L]
Results [1]: [count(1)#14555645L AS count#14555646L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#14557673L]
Results [1]: [count#14557674L]
(10) Exchange
Input [1]: [count#14557674L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4264157]
(11) HashAggregate
Input [1]: [count#14557674L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14555645L]
Results [1]: [count(1)#14555645L AS count#14555646L]
(12) AdaptiveSparkPlan
Output [1]: [count#14555646L]
Arguments: isFinalPlan=true