== 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#15174816, po_item_product_name#15174817, transaction_id#15174818, buyer_gln#15174819, seller_gln#15174820, pod_division#15174821, pod_delivery_date#15174822, pod_product_item_id#15174823, pod_product_entity#15174824, po_number#15174825, product_item_id#15174826, product_entity#15174827, brand_context_id#15174828, po_division#15174829, po_delivery_date#15174830, row_id#15174831L, parent_row_id#15174832, chain_seq#15174833, tier#15174834, production_input_type#15174835, trans_create_ts#15174836, trans_update_ts#15174837, outbound_create_ts#15174838, outbound_supplier_code#15174839, ... 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#15174816,po_item_product_name#15174817,transaction_id#15174818,buyer_gln#15174819,seller_gln#15174820,pod_division#15174821,pod_delivery_date#15174822,pod_product_item_id#15174823,pod_product_entity#15174824,po_number#15174825,product_item_id#15174826,product_entity#15174827,brand_context_id#15174828,po_division#15174829,po_delivery_date#15174830,row_id#15174831L,parent_row_id#15174832,chain_seq#15174833,tier#15174834,production_input_type#15174835,trans_create_ts#15174836,trans_update_ts#15174837,outbound_create_ts#15174838,outbound_supplier_code#15174839,... 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#15174816, po_item_product_name#15174817, transaction_id#15174818, buyer_gln#15174819, seller_gln#15174820, pod_division#15174821, pod_delivery_date#15174822, pod_product_item_id#15174823, pod_product_entity#15174824, po_number#15174825, product_item_id#15174826, product_entity#15174827, brand_context_id#15174828, po_division#15174829, po_delivery_date#15174830, row_id#15174831L, parent_row_id#15174832, chain_seq#15174833, tier#15174834, production_input_type#15174835, trans_create_ts#15174836, trans_update_ts#15174837, outbound_create_ts#15174838, outbound_supplier_code#15174839, outbound_supplier_name#15174840, outbound_trans_date#15174841, outbound_quantity#15174842, outbound_quantity_unit#15174843, outbound_seller_uom_quantity#15174844, outbound_seller_uom_unit#15174845, production_facility_uid#15174846, production_facility_name#15174847, production_facility_country#15174848, production_lot_id#15174849, production_trans_date#15174850, production_quantity#15174851, production_quantity_unit#15174852, production_seller_uom_quantity#15174853, production_seller_uom_unit#15174854, production_product_type#15174855, production_product_code#15174856, production_product_name#15174857, production_inputlot_quantity#15174858, production_inputlot_unit#15174859, production_inputlot_uom_quantity#15174860, production_inputlot_uom_quantity_unit#15174861, IP_P_facility_uid#15174862, IP_P_facility_name#15174863, IP_P_facility_country#15174864, IP_P_product_type#15174865, IP_P_lot_id#15174866, IP_P_trans_date#15174867, IP_P_output_quantity#15174868, IP_P_seller_uom_quantity#15174869, IP_P_seller_uom_quantity_unit#15174870, IP_P_inputlot_quantity#15174871, IP_P_inputlot_product_uid#15174872, PPI_product_name#15174873, IP_P_inputlot_supplier_facility_uid#15174874, IP_P_Supplier_facility_name#15174875, IP_P_Supplier_facility_country#15174876, IP_P_inputlot_id#15174877, IP_P_I_facility_uid#15174878, IP_P_I_facility_name#15174879, IP_P_I_facility_country#15174880, IP_P_I_transdate#15174881, IP_P_I_quantity#15174882, IP_P__IQuanaity_Unit_Desc#15174883, IP_P_Business_Document_Number#15174884, IP_P_output_product_uid#15174885, IP_P_product_ProductName#15174886, IP_P_product_ProductType#15174887, Inbound_Seller_UID#15174888, Inbound_Seller_Name#15174889, IP_P_I_profile_uid#15174890, IP_P_I_profile_name#15174891, IP_P_MaterialComp#15174892, IP_P_inputlot_supplier_uom_quantity#15174893, IP_P_inputlot_supplier_uom_unit#15174894, inbound_id#15174895, inbound_create_ts#15174896, inbound_trans_type#15174897, inbound_status#15174898, inbound_product_code#15174899, inbound_product_name#15174900, inbound_supplier_uid#15174901, inbound_Supplier_Name#15174902, inbound_supplier_facility_uid#15174903, inbound_supplier_facility_name#15174904, inbound_supplier_facility_country#15174905, inbound_seller_lot_id#15174906, inbound_facility_uid#15174907, inbound_facility_country#15174908, inbound_facility_name#15174909, inbound_trans_date#15174910, inbound_quantity#15174911, inbound_quantity_unit#15174912, inbound_seller_uom_quantity#15174913, inbound_seller_uom_unit#15174914, input_material_composition#15174915, inbound_business_document_number#15174916, inbound_document_yes_no#15174917, inter_production_facility_uid#15174918, inter_production_facility_name#15174919, inter_production_facility_country#15174920, inter_production_article_type_id#15174921, inter_production_material_unique_code#15174922, inter_production_internal_article_name#15174923, inter_production_lot_id#15174924, inter_production_trans_date#15174925, inter_production_output_quantity#15174926, inter_production_output_unit#15174927, inter_production_material#15174928, inter_production_input_quantity#15174929, inter_production_input_unit#15174930, inter_pod_input_product_code#15174931, inter_pod_input_product_name#15174932, inter_pod_inbound_reference_id#15174933, inter_pod_inbound_Supplier_Name#15174934, inter_pod_inbound_supplier_facility_uid#15174935, inter_pod_supplier_facility_name#15174936, inter_pod_address_country#15174937, inter_pod_inbound_seller_lot_id#15174938, inter_pod_inbound_facility_uid#15174939, inter_pod_inbound_facility_country#15174940, inter_pod_inbound_facility_name#15174941, inter_pod_inbound_trans_date#15174942, inter_pod_inbound_quantity#15174943, inter_pod_inbound_unit#15174944, inter_pod_inbound_seller_uom_quantity#15174945, inter_pod_inbound_seller_uom_unit#15174946, inter_pod_input_material_composition#15174947, inter_pod_business_document_number#15174948, inter_pod_inbound_document_yes_no#15174949, bigid#15174950L]
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#15177924L]
Results [1]: [count#15177925L]
(6) Exchange
Input [1]: [count#15177925L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4306972]
(7) ShuffleQueryStage
Output [1]: [count#15177925L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#15177925L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#15175896L]
Results [1]: [count(1)#15175896L AS count#15175897L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#15177924L]
Results [1]: [count#15177925L]
(10) Exchange
Input [1]: [count#15177925L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4306947]
(11) HashAggregate
Input [1]: [count#15177925L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#15175896L]
Results [1]: [count(1)#15175896L AS count#15175897L]
(12) AdaptiveSparkPlan
Output [1]: [count#15175897L]
Arguments: isFinalPlan=true