== 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#1018935, po_item_product_name#1018936, transaction_id#1018937, buyer_gln#1018938, seller_gln#1018939, pod_division#1018940, pod_delivery_date#1018941, pod_product_item_id#1018942, pod_product_entity#1018943, po_number#1018944, product_item_id#1018945, product_entity#1018946, brand_context_id#1018947, po_division#1018948, po_delivery_date#1018949, row_id#1018950L, parent_row_id#1018951, chain_seq#1018952, tier#1018953, production_input_type#1018954, trans_create_ts#1018955, trans_update_ts#1018956, outbound_create_ts#1018957, outbound_supplier_code#1018958, ... 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#1018935,po_item_product_name#1018936,transaction_id#1018937,buyer_gln#1018938,seller_gln#1018939,pod_division#1018940,pod_delivery_date#1018941,pod_product_item_id#1018942,pod_product_entity#1018943,po_number#1018944,product_item_id#1018945,product_entity#1018946,brand_context_id#1018947,po_division#1018948,po_delivery_date#1018949,row_id#1018950L,parent_row_id#1018951,chain_seq#1018952,tier#1018953,production_input_type#1018954,trans_create_ts#1018955,trans_update_ts#1018956,outbound_create_ts#1018957,outbound_supplier_code#1018958,... 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#1018935, po_item_product_name#1018936, transaction_id#1018937, buyer_gln#1018938, seller_gln#1018939, pod_division#1018940, pod_delivery_date#1018941, pod_product_item_id#1018942, pod_product_entity#1018943, po_number#1018944, product_item_id#1018945, product_entity#1018946, brand_context_id#1018947, po_division#1018948, po_delivery_date#1018949, row_id#1018950L, parent_row_id#1018951, chain_seq#1018952, tier#1018953, production_input_type#1018954, trans_create_ts#1018955, trans_update_ts#1018956, outbound_create_ts#1018957, outbound_supplier_code#1018958, outbound_supplier_name#1018959, outbound_trans_date#1018960, outbound_quantity#1018961, outbound_quantity_unit#1018962, outbound_seller_uom_quantity#1018963, outbound_seller_uom_unit#1018964, production_facility_uid#1018965, production_facility_name#1018966, production_facility_country#1018967, production_lot_id#1018968, production_trans_date#1018969, production_quantity#1018970, production_quantity_unit#1018971, production_seller_uom_quantity#1018972, production_seller_uom_unit#1018973, production_product_type#1018974, production_product_code#1018975, production_product_name#1018976, production_inputlot_quantity#1018977, production_inputlot_unit#1018978, production_inputlot_uom_quantity#1018979, production_inputlot_uom_quantity_unit#1018980, IP_P_facility_uid#1018981, IP_P_facility_name#1018982, IP_P_facility_country#1018983, IP_P_product_type#1018984, IP_P_lot_id#1018985, IP_P_trans_date#1018986, IP_P_output_quantity#1018987, IP_P_seller_uom_quantity#1018988, IP_P_seller_uom_quantity_unit#1018989, IP_P_inputlot_quantity#1018990, IP_P_inputlot_product_uid#1018991, PPI_product_name#1018992, IP_P_inputlot_supplier_facility_uid#1018993, IP_P_Supplier_facility_name#1018994, IP_P_Supplier_facility_country#1018995, IP_P_inputlot_id#1018996, IP_P_I_facility_uid#1018997, IP_P_I_facility_name#1018998, IP_P_I_facility_country#1018999, IP_P_I_transdate#1019000, IP_P_I_quantity#1019001, IP_P__IQuanaity_Unit_Desc#1019002, IP_P_Business_Document_Number#1019003, IP_P_output_product_uid#1019004, IP_P_product_ProductName#1019005, IP_P_product_ProductType#1019006, Inbound_Seller_UID#1019007, Inbound_Seller_Name#1019008, IP_P_I_profile_uid#1019009, IP_P_I_profile_name#1019010, IP_P_MaterialComp#1019011, IP_P_inputlot_supplier_uom_quantity#1019012, IP_P_inputlot_supplier_uom_unit#1019013, inbound_id#1019014, inbound_create_ts#1019015, inbound_trans_type#1019016, inbound_status#1019017, inbound_product_code#1019018, inbound_product_name#1019019, inbound_supplier_uid#1019020, inbound_Supplier_Name#1019021, inbound_supplier_facility_uid#1019022, inbound_supplier_facility_name#1019023, inbound_supplier_facility_country#1019024, inbound_seller_lot_id#1019025, inbound_facility_uid#1019026, inbound_facility_country#1019027, inbound_facility_name#1019028, inbound_trans_date#1019029, inbound_quantity#1019030, inbound_quantity_unit#1019031, inbound_seller_uom_quantity#1019032, inbound_seller_uom_unit#1019033, input_material_composition#1019034, inbound_business_document_number#1019035, inbound_document_yes_no#1019036, inter_production_facility_uid#1019037, inter_production_facility_name#1019038, inter_production_facility_country#1019039, inter_production_article_type_id#1019040, inter_production_material_unique_code#1019041, inter_production_internal_article_name#1019042, inter_production_lot_id#1019043, inter_production_trans_date#1019044, inter_production_output_quantity#1019045, inter_production_output_unit#1019046, inter_production_material#1019047, inter_production_input_quantity#1019048, inter_production_input_unit#1019049, inter_pod_input_product_code#1019050, inter_pod_input_product_name#1019051, inter_pod_inbound_reference_id#1019052, inter_pod_inbound_Supplier_Name#1019053, inter_pod_inbound_supplier_facility_uid#1019054, inter_pod_supplier_facility_name#1019055, inter_pod_address_country#1019056, inter_pod_inbound_seller_lot_id#1019057, inter_pod_inbound_facility_uid#1019058, inter_pod_inbound_facility_country#1019059, inter_pod_inbound_facility_name#1019060, inter_pod_inbound_trans_date#1019061, inter_pod_inbound_quantity#1019062, inter_pod_inbound_unit#1019063, inter_pod_inbound_seller_uom_quantity#1019064, inter_pod_inbound_seller_uom_unit#1019065, inter_pod_input_material_composition#1019066, inter_pod_business_document_number#1019067, inter_pod_inbound_document_yes_no#1019068, bigid#1019069L]
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#1022043L]
Results [1]: [count#1022044L]
(6) Exchange
Input [1]: [count#1022044L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=48530]
(7) ShuffleQueryStage
Output [1]: [count#1022044L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#1022044L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#1020015L]
Results [1]: [count(1)#1020015L AS count#1020016L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#1022043L]
Results [1]: [count#1022044L]
(10) Exchange
Input [1]: [count#1022044L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=48451]
(11) HashAggregate
Input [1]: [count#1022044L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#1020015L]
Results [1]: [count(1)#1020015L AS count#1020016L]
(12) AdaptiveSparkPlan
Output [1]: [count#1020016L]
Arguments: isFinalPlan=true