== 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 10001 AND 20000) 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 10001 AND 20000) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output: []
(2) InMemoryRelation
Arguments: [po_item_product_code#14533772, po_item_product_name#14533773, transaction_id#14533774, buyer_gln#14533775, seller_gln#14533776, pod_division#14533777, pod_delivery_date#14533778, pod_product_item_id#14533779, pod_product_entity#14533780, po_number#14533781, product_item_id#14533782, product_entity#14533783, brand_context_id#14533784, po_division#14533785, po_delivery_date#14533786, row_id#14533787L, parent_row_id#14533788, chain_seq#14533789, tier#14533790, production_input_type#14533791, trans_create_ts#14533792, trans_update_ts#14533793, outbound_create_ts#14533794, outbound_supplier_code#14533795, ... 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 10001 AND 20000) AS page) [numPartitions=1] [po_item_product_code#14533772,po_item_product_name#14533773,transaction_id#14533774,buyer_gln#14533775,seller_gln#14533776,pod_division#14533777,pod_delivery_date#14533778,pod_product_item_id#14533779,pod_product_entity#14533780,po_number#14533781,product_item_id#14533782,product_entity#14533783,brand_context_id#14533784,po_division#14533785,po_delivery_date#14533786,row_id#14533787L,parent_row_id#14533788,chain_seq#14533789,tier#14533790,production_input_type#14533791,trans_create_ts#14533792,trans_update_ts#14533793,outbound_create_ts#14533794,outbound_supplier_code#14533795,... 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 10001 AND 20000) AS page) [numPartitions=1]
Output [135]: [po_item_product_code#14533772, po_item_product_name#14533773, transaction_id#14533774, buyer_gln#14533775, seller_gln#14533776, pod_division#14533777, pod_delivery_date#14533778, pod_product_item_id#14533779, pod_product_entity#14533780, po_number#14533781, product_item_id#14533782, product_entity#14533783, brand_context_id#14533784, po_division#14533785, po_delivery_date#14533786, row_id#14533787L, parent_row_id#14533788, chain_seq#14533789, tier#14533790, production_input_type#14533791, trans_create_ts#14533792, trans_update_ts#14533793, outbound_create_ts#14533794, outbound_supplier_code#14533795, outbound_supplier_name#14533796, outbound_trans_date#14533797, outbound_quantity#14533798, outbound_quantity_unit#14533799, outbound_seller_uom_quantity#14533800, outbound_seller_uom_unit#14533801, production_facility_uid#14533802, production_facility_name#14533803, production_facility_country#14533804, production_lot_id#14533805, production_trans_date#14533806, production_quantity#14533807, production_quantity_unit#14533808, production_seller_uom_quantity#14533809, production_seller_uom_unit#14533810, production_product_type#14533811, production_product_code#14533812, production_product_name#14533813, production_inputlot_quantity#14533814, production_inputlot_unit#14533815, production_inputlot_uom_quantity#14533816, production_inputlot_uom_quantity_unit#14533817, IP_P_facility_uid#14533818, IP_P_facility_name#14533819, IP_P_facility_country#14533820, IP_P_product_type#14533821, IP_P_lot_id#14533822, IP_P_trans_date#14533823, IP_P_output_quantity#14533824, IP_P_seller_uom_quantity#14533825, IP_P_seller_uom_quantity_unit#14533826, IP_P_inputlot_quantity#14533827, IP_P_inputlot_product_uid#14533828, PPI_product_name#14533829, IP_P_inputlot_supplier_facility_uid#14533830, IP_P_Supplier_facility_name#14533831, IP_P_Supplier_facility_country#14533832, IP_P_inputlot_id#14533833, IP_P_I_facility_uid#14533834, IP_P_I_facility_name#14533835, IP_P_I_facility_country#14533836, IP_P_I_transdate#14533837, IP_P_I_quantity#14533838, IP_P__IQuanaity_Unit_Desc#14533839, IP_P_Business_Document_Number#14533840, IP_P_output_product_uid#14533841, IP_P_product_ProductName#14533842, IP_P_product_ProductType#14533843, Inbound_Seller_UID#14533844, Inbound_Seller_Name#14533845, IP_P_I_profile_uid#14533846, IP_P_I_profile_name#14533847, IP_P_MaterialComp#14533848, IP_P_inputlot_supplier_uom_quantity#14533849, IP_P_inputlot_supplier_uom_unit#14533850, inbound_id#14533851, inbound_create_ts#14533852, inbound_trans_type#14533853, inbound_status#14533854, inbound_product_code#14533855, inbound_product_name#14533856, inbound_supplier_uid#14533857, inbound_Supplier_Name#14533858, inbound_supplier_facility_uid#14533859, inbound_supplier_facility_name#14533860, inbound_supplier_facility_country#14533861, inbound_seller_lot_id#14533862, inbound_facility_uid#14533863, inbound_facility_country#14533864, inbound_facility_name#14533865, inbound_trans_date#14533866, inbound_quantity#14533867, inbound_quantity_unit#14533868, inbound_seller_uom_quantity#14533869, inbound_seller_uom_unit#14533870, input_material_composition#14533871, inbound_business_document_number#14533872, inbound_document_yes_no#14533873, inter_production_facility_uid#14533874, inter_production_facility_name#14533875, inter_production_facility_country#14533876, inter_production_article_type_id#14533877, inter_production_material_unique_code#14533878, inter_production_internal_article_name#14533879, inter_production_lot_id#14533880, inter_production_trans_date#14533881, inter_production_output_quantity#14533882, inter_production_output_unit#14533883, inter_production_material#14533884, inter_production_input_quantity#14533885, inter_production_input_unit#14533886, inter_pod_input_product_code#14533887, inter_pod_input_product_name#14533888, inter_pod_inbound_reference_id#14533889, inter_pod_inbound_Supplier_Name#14533890, inter_pod_inbound_supplier_facility_uid#14533891, inter_pod_supplier_facility_name#14533892, inter_pod_address_country#14533893, inter_pod_inbound_seller_lot_id#14533894, inter_pod_inbound_facility_uid#14533895, inter_pod_inbound_facility_country#14533896, inter_pod_inbound_facility_name#14533897, inter_pod_inbound_trans_date#14533898, inter_pod_inbound_quantity#14533899, inter_pod_inbound_unit#14533900, inter_pod_inbound_seller_uom_quantity#14533901, inter_pod_inbound_seller_uom_unit#14533902, inter_pod_input_material_composition#14533903, inter_pod_business_document_number#14533904, inter_pod_inbound_document_yes_no#14533905, bigid#14533906L]
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#14536880L]
Results [1]: [count#14536881L]
(6) Exchange
Input [1]: [count#14536881L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4263685]
(7) ShuffleQueryStage
Output [1]: [count#14536881L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#14536881L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14534852L]
Results [1]: [count(1)#14534852L AS count#14534853L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#14536880L]
Results [1]: [count#14536881L]
(10) Exchange
Input [1]: [count#14536881L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4263598]
(11) HashAggregate
Input [1]: [count#14536881L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#14534852L]
Results [1]: [count(1)#14534852L AS count#14534853L]
(12) AdaptiveSparkPlan
Output [1]: [count#14534853L]
Arguments: isFinalPlan=true