== 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.7 MiB, rowCount=1.00E+4)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- Scan JDBCRelation((SELECT * FROM dbo.fact_trans_chain_po_detail WHERE bigid BETWEEN 50001 AND 60000) 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 50001 AND 60000) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [po_item_product_code#14570583, po_item_product_name#14570584, transaction_id#14570585, buyer_gln#14570586, seller_gln#14570587, pod_division#14570588, pod_delivery_date#14570589, pod_product_item_id#14570590, pod_product_entity#14570591, po_number#14570592, product_item_id#14570593, product_entity#14570594, brand_context_id#14570595, po_division#14570596, po_delivery_date#14570597, row_id#14570598L, parent_row_id#14570599, chain_seq#14570600, tier#14570601, production_input_type#14570602, trans_create_ts#14570603, trans_update_ts#14570604, outbound_create_ts#14570605, outbound_supplier_code#14570606, ... 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 50001 AND 60000) AS page) [numPartitions=1] [po_item_product_code#14570583,po_item_product_name#14570584,transaction_id#14570585,buyer_gln#14570586,seller_gln#14570587,pod_division#14570588,pod_delivery_date#14570589,pod_product_item_id#14570590,pod_product_entity#14570591,po_number#14570592,product_item_id#14570593,product_entity#14570594,brand_context_id#14570595,po_division#14570596,po_delivery_date#14570597,row_id#14570598L,parent_row_id#14570599,chain_seq#14570600,tier#14570601,production_input_type#14570602,trans_create_ts#14570603,trans_update_ts#14570604,outbound_create_ts#14570605,outbound_supplier_code#14570606,... 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 50001 AND 60000) AS page) [numPartitions=1]
Output [135]: [po_item_product_code#14570583, po_item_product_name#14570584, transaction_id#14570585, buyer_gln#14570586, seller_gln#14570587, pod_division#14570588, pod_delivery_date#14570589, pod_product_item_id#14570590, pod_product_entity#14570591, po_number#14570592, product_item_id#14570593, product_entity#14570594, brand_context_id#14570595, po_division#14570596, po_delivery_date#14570597, row_id#14570598L, parent_row_id#14570599, chain_seq#14570600, tier#14570601, production_input_type#14570602, trans_create_ts#14570603, trans_update_ts#14570604, outbound_create_ts#14570605, outbound_supplier_code#14570606, outbound_supplier_name#14570607, outbound_trans_date#14570608, outbound_quantity#14570609, outbound_quantity_unit#14570610, outbound_seller_uom_quantity#14570611, outbound_seller_uom_unit#14570612, production_facility_uid#14570613, production_facility_name#14570614, production_facility_country#14570615, production_lot_id#14570616, production_trans_date#14570617, production_quantity#14570618, production_quantity_unit#14570619, production_seller_uom_quantity#14570620, production_seller_uom_unit#14570621, production_product_type#14570622, production_product_code#14570623, production_product_name#14570624, production_inputlot_quantity#14570625, production_inputlot_unit#14570626, production_inputlot_uom_quantity#14570627, production_inputlot_uom_quantity_unit#14570628, IP_P_facility_uid#14570629, IP_P_facility_name#14570630, IP_P_facility_country#14570631, IP_P_product_type#14570632, IP_P_lot_id#14570633, IP_P_trans_date#14570634, IP_P_output_quantity#14570635, IP_P_seller_uom_quantity#14570636, IP_P_seller_uom_quantity_unit#14570637, IP_P_inputlot_quantity#14570638, IP_P_inputlot_product_uid#14570639, PPI_product_name#14570640, IP_P_inputlot_supplier_facility_uid#14570641, IP_P_Supplier_facility_name#14570642, IP_P_Supplier_facility_country#14570643, IP_P_inputlot_id#14570644, IP_P_I_facility_uid#14570645, IP_P_I_facility_name#14570646, IP_P_I_facility_country#14570647, IP_P_I_transdate#14570648, IP_P_I_quantity#14570649, IP_P__IQuanaity_Unit_Desc#14570650, IP_P_Business_Document_Number#14570651, IP_P_output_product_uid#14570652, IP_P_product_ProductName#14570653, IP_P_product_ProductType#14570654, Inbound_Seller_UID#14570655, Inbound_Seller_Name#14570656, IP_P_I_profile_uid#14570657, IP_P_I_profile_name#14570658, IP_P_MaterialComp#14570659, IP_P_inputlot_supplier_uom_quantity#14570660, IP_P_inputlot_supplier_uom_unit#14570661, inbound_id#14570662, inbound_create_ts#14570663, inbound_trans_type#14570664, inbound_status#14570665, inbound_product_code#14570666, inbound_product_name#14570667, inbound_supplier_uid#14570668, inbound_Supplier_Name#14570669, inbound_supplier_facility_uid#14570670, inbound_supplier_facility_name#14570671, inbound_supplier_facility_country#14570672, inbound_seller_lot_id#14570673, inbound_facility_uid#14570674, inbound_facility_country#14570675, inbound_facility_name#14570676, inbound_trans_date#14570677, inbound_quantity#14570678, inbound_quantity_unit#14570679, inbound_seller_uom_quantity#14570680, inbound_seller_uom_unit#14570681, input_material_composition#14570682, inbound_business_document_number#14570683, inbound_document_yes_no#14570684, inter_production_facility_uid#14570685, inter_production_facility_name#14570686, inter_production_facility_country#14570687, inter_production_article_type_id#14570688, inter_production_material_unique_code#14570689, inter_production_internal_article_name#14570690, inter_production_lot_id#14570691, inter_production_trans_date#14570692, inter_production_output_quantity#14570693, inter_production_output_unit#14570694, inter_production_material#14570695, inter_production_input_quantity#14570696, inter_production_input_unit#14570697, inter_pod_input_product_code#14570698, inter_pod_input_product_name#14570699, inter_pod_inbound_reference_id#14570700, inter_pod_inbound_Supplier_Name#14570701, inter_pod_inbound_supplier_facility_uid#14570702, inter_pod_supplier_facility_name#14570703, inter_pod_address_country#14570704, inter_pod_inbound_seller_lot_id#14570705, inter_pod_inbound_facility_uid#14570706, inter_pod_inbound_facility_country#14570707, inter_pod_inbound_facility_name#14570708, inter_pod_inbound_trans_date#14570709, inter_pod_inbound_quantity#14570710, inter_pod_inbound_unit#14570711, inter_pod_inbound_seller_uom_quantity#14570712, inter_pod_inbound_seller_uom_unit#14570713, inter_pod_input_material_composition#14570714, inter_pod_business_document_number#14570715, inter_pod_inbound_document_yes_no#14570716, bigid#14570717L]
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#14573691L]
Results [1]: [count#14573692L]
(6) Exchange
Input [1]: [count#14573692L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4264341]
(7) ShuffleQueryStage
Output [1]: [count#14573692L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#14573692L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14571663L]
Results [1]: [count(1)#14571663L AS count#14571664L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#14573691L]
Results [1]: [count#14573692L]
(10) Exchange
Input [1]: [count#14573692L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4264316]
(11) HashAggregate
Input [1]: [count#14573692L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14571663L]
Results [1]: [count(1)#14571663L AS count#14571664L]
(12) AdaptiveSparkPlan
Output [1]: [count#14571664L]
Arguments: isFinalPlan=true