== 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#17537051, po_item_product_name#17537052, transaction_id#17537053, buyer_gln#17537054, seller_gln#17537055, pod_division#17537056, pod_delivery_date#17537057, pod_product_item_id#17537058, pod_product_entity#17537059, po_number#17537060, product_item_id#17537061, product_entity#17537062, brand_context_id#17537063, po_division#17537064, po_delivery_date#17537065, row_id#17537066L, parent_row_id#17537067, chain_seq#17537068, tier#17537069, production_input_type#17537070, trans_create_ts#17537071, trans_update_ts#17537072, outbound_create_ts#17537073, outbound_supplier_code#17537074, ... 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#17537051,po_item_product_name#17537052,transaction_id#17537053,buyer_gln#17537054,seller_gln#17537055,pod_division#17537056,pod_delivery_date#17537057,pod_product_item_id#17537058,pod_product_entity#17537059,po_number#17537060,product_item_id#17537061,product_entity#17537062,brand_context_id#17537063,po_division#17537064,po_delivery_date#17537065,row_id#17537066L,parent_row_id#17537067,chain_seq#17537068,tier#17537069,production_input_type#17537070,trans_create_ts#17537071,trans_update_ts#17537072,outbound_create_ts#17537073,outbound_supplier_code#17537074,... 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#17537051, po_item_product_name#17537052, transaction_id#17537053, buyer_gln#17537054, seller_gln#17537055, pod_division#17537056, pod_delivery_date#17537057, pod_product_item_id#17537058, pod_product_entity#17537059, po_number#17537060, product_item_id#17537061, product_entity#17537062, brand_context_id#17537063, po_division#17537064, po_delivery_date#17537065, row_id#17537066L, parent_row_id#17537067, chain_seq#17537068, tier#17537069, production_input_type#17537070, trans_create_ts#17537071, trans_update_ts#17537072, outbound_create_ts#17537073, outbound_supplier_code#17537074, outbound_supplier_name#17537075, outbound_trans_date#17537076, outbound_quantity#17537077, outbound_quantity_unit#17537078, outbound_seller_uom_quantity#17537079, outbound_seller_uom_unit#17537080, production_facility_uid#17537081, production_facility_name#17537082, production_facility_country#17537083, production_lot_id#17537084, production_trans_date#17537085, production_quantity#17537086, production_quantity_unit#17537087, production_seller_uom_quantity#17537088, production_seller_uom_unit#17537089, production_product_type#17537090, production_product_code#17537091, production_product_name#17537092, production_inputlot_quantity#17537093, production_inputlot_unit#17537094, production_inputlot_uom_quantity#17537095, production_inputlot_uom_quantity_unit#17537096, IP_P_facility_uid#17537097, IP_P_facility_name#17537098, IP_P_facility_country#17537099, IP_P_product_type#17537100, IP_P_lot_id#17537101, IP_P_trans_date#17537102, IP_P_output_quantity#17537103, IP_P_seller_uom_quantity#17537104, IP_P_seller_uom_quantity_unit#17537105, IP_P_inputlot_quantity#17537106, IP_P_inputlot_product_uid#17537107, PPI_product_name#17537108, IP_P_inputlot_supplier_facility_uid#17537109, IP_P_Supplier_facility_name#17537110, IP_P_Supplier_facility_country#17537111, IP_P_inputlot_id#17537112, IP_P_I_facility_uid#17537113, IP_P_I_facility_name#17537114, IP_P_I_facility_country#17537115, IP_P_I_transdate#17537116, IP_P_I_quantity#17537117, IP_P__IQuanaity_Unit_Desc#17537118, IP_P_Business_Document_Number#17537119, IP_P_output_product_uid#17537120, IP_P_product_ProductName#17537121, IP_P_product_ProductType#17537122, Inbound_Seller_UID#17537123, Inbound_Seller_Name#17537124, IP_P_I_profile_uid#17537125, IP_P_I_profile_name#17537126, IP_P_MaterialComp#17537127, IP_P_inputlot_supplier_uom_quantity#17537128, IP_P_inputlot_supplier_uom_unit#17537129, inbound_id#17537130, inbound_create_ts#17537131, inbound_trans_type#17537132, inbound_status#17537133, inbound_product_code#17537134, inbound_product_name#17537135, inbound_supplier_uid#17537136, inbound_Supplier_Name#17537137, inbound_supplier_facility_uid#17537138, inbound_supplier_facility_name#17537139, inbound_supplier_facility_country#17537140, inbound_seller_lot_id#17537141, inbound_facility_uid#17537142, inbound_facility_country#17537143, inbound_facility_name#17537144, inbound_trans_date#17537145, inbound_quantity#17537146, inbound_quantity_unit#17537147, inbound_seller_uom_quantity#17537148, inbound_seller_uom_unit#17537149, input_material_composition#17537150, inbound_business_document_number#17537151, inbound_document_yes_no#17537152, inter_production_facility_uid#17537153, inter_production_facility_name#17537154, inter_production_facility_country#17537155, inter_production_article_type_id#17537156, inter_production_material_unique_code#17537157, inter_production_internal_article_name#17537158, inter_production_lot_id#17537159, inter_production_trans_date#17537160, inter_production_output_quantity#17537161, inter_production_output_unit#17537162, inter_production_material#17537163, inter_production_input_quantity#17537164, inter_production_input_unit#17537165, inter_pod_input_product_code#17537166, inter_pod_input_product_name#17537167, inter_pod_inbound_reference_id#17537168, inter_pod_inbound_Supplier_Name#17537169, inter_pod_inbound_supplier_facility_uid#17537170, inter_pod_supplier_facility_name#17537171, inter_pod_address_country#17537172, inter_pod_inbound_seller_lot_id#17537173, inter_pod_inbound_facility_uid#17537174, inter_pod_inbound_facility_country#17537175, inter_pod_inbound_facility_name#17537176, inter_pod_inbound_trans_date#17537177, inter_pod_inbound_quantity#17537178, inter_pod_inbound_unit#17537179, inter_pod_inbound_seller_uom_quantity#17537180, inter_pod_inbound_seller_uom_unit#17537181, inter_pod_input_material_composition#17537182, inter_pod_business_document_number#17537183, inter_pod_inbound_document_yes_no#17537184, bigid#17537185L]
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#17540369L]
Results [1]: [count#17540370L]
(6) Exchange
Input [1]: [count#17540370L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4579803]
(7) ShuffleQueryStage
Output [1]: [count#17540370L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#17540370L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#17538157L]
Results [1]: [count(1)#17538157L AS count#17538158L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#17540369L]
Results [1]: [count#17540370L]
(10) Exchange
Input [1]: [count#17540370L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4579739]
(11) HashAggregate
Input [1]: [count#17540370L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#17538157L]
Results [1]: [count(1)#17538157L AS count#17538158L]
(12) AdaptiveSparkPlan
Output [1]: [count#17538158L]
Arguments: isFinalPlan=true