== 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#20613138, po_item_product_name#20613139, transaction_id#20613140, buyer_gln#20613141, seller_gln#20613142, pod_division#20613143, pod_delivery_date#20613144, pod_product_item_id#20613145, pod_product_entity#20613146, po_number#20613147, product_item_id#20613148, product_entity#20613149, brand_context_id#20613150, po_division#20613151, po_delivery_date#20613152, row_id#20613153L, parent_row_id#20613154, chain_seq#20613155, tier#20613156, production_input_type#20613157, trans_create_ts#20613158, trans_update_ts#20613159, outbound_create_ts#20613160, outbound_supplier_code#20613161, ... 111 more fields], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@14de14ab,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#20613138,po_item_product_name#20613139,transaction_id#20613140,buyer_gln#20613141,seller_gln#20613142,pod_division#20613143,pod_delivery_date#20613144,pod_product_item_id#20613145,pod_product_entity#20613146,po_number#20613147,product_item_id#20613148,product_entity#20613149,brand_context_id#20613150,po_division#20613151,po_delivery_date#20613152,row_id#20613153L,parent_row_id#20613154,chain_seq#20613155,tier#20613156,production_input_type#20613157,trans_create_ts#20613158,trans_update_ts#20613159,outbound_create_ts#20613160,outbound_supplier_code#20613161,... 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#20613138, po_item_product_name#20613139, transaction_id#20613140, buyer_gln#20613141, seller_gln#20613142, pod_division#20613143, pod_delivery_date#20613144, pod_product_item_id#20613145, pod_product_entity#20613146, po_number#20613147, product_item_id#20613148, product_entity#20613149, brand_context_id#20613150, po_division#20613151, po_delivery_date#20613152, row_id#20613153L, parent_row_id#20613154, chain_seq#20613155, tier#20613156, production_input_type#20613157, trans_create_ts#20613158, trans_update_ts#20613159, outbound_create_ts#20613160, outbound_supplier_code#20613161, outbound_supplier_name#20613162, outbound_trans_date#20613163, outbound_quantity#20613164, outbound_quantity_unit#20613165, outbound_seller_uom_quantity#20613166, outbound_seller_uom_unit#20613167, production_facility_uid#20613168, production_facility_name#20613169, production_facility_country#20613170, production_lot_id#20613171, production_trans_date#20613172, production_quantity#20613173, production_quantity_unit#20613174, production_seller_uom_quantity#20613175, production_seller_uom_unit#20613176, production_product_type#20613177, production_product_code#20613178, production_product_name#20613179, production_inputlot_quantity#20613180, production_inputlot_unit#20613181, production_inputlot_uom_quantity#20613182, production_inputlot_uom_quantity_unit#20613183, IP_P_facility_uid#20613184, IP_P_facility_name#20613185, IP_P_facility_country#20613186, IP_P_product_type#20613187, IP_P_lot_id#20613188, IP_P_trans_date#20613189, IP_P_output_quantity#20613190, IP_P_seller_uom_quantity#20613191, IP_P_seller_uom_quantity_unit#20613192, IP_P_inputlot_quantity#20613193, IP_P_inputlot_product_uid#20613194, PPI_product_name#20613195, IP_P_inputlot_supplier_facility_uid#20613196, IP_P_Supplier_facility_name#20613197, IP_P_Supplier_facility_country#20613198, IP_P_inputlot_id#20613199, IP_P_I_facility_uid#20613200, IP_P_I_facility_name#20613201, IP_P_I_facility_country#20613202, IP_P_I_transdate#20613203, IP_P_I_quantity#20613204, IP_P__IQuanaity_Unit_Desc#20613205, IP_P_Business_Document_Number#20613206, IP_P_output_product_uid#20613207, IP_P_product_ProductName#20613208, IP_P_product_ProductType#20613209, Inbound_Seller_UID#20613210, Inbound_Seller_Name#20613211, IP_P_I_profile_uid#20613212, IP_P_I_profile_name#20613213, IP_P_MaterialComp#20613214, IP_P_inputlot_supplier_uom_quantity#20613215, IP_P_inputlot_supplier_uom_unit#20613216, inbound_id#20613217, inbound_create_ts#20613218, inbound_trans_type#20613219, inbound_status#20613220, inbound_product_code#20613221, inbound_product_name#20613222, inbound_supplier_uid#20613223, inbound_Supplier_Name#20613224, inbound_supplier_facility_uid#20613225, inbound_supplier_facility_name#20613226, inbound_supplier_facility_country#20613227, inbound_seller_lot_id#20613228, inbound_facility_uid#20613229, inbound_facility_country#20613230, inbound_facility_name#20613231, inbound_trans_date#20613232, inbound_quantity#20613233, inbound_quantity_unit#20613234, inbound_seller_uom_quantity#20613235, inbound_seller_uom_unit#20613236, input_material_composition#20613237, inbound_business_document_number#20613238, inbound_document_yes_no#20613239, inter_production_facility_uid#20613240, inter_production_facility_name#20613241, inter_production_facility_country#20613242, inter_production_article_type_id#20613243, inter_production_material_unique_code#20613244, inter_production_internal_article_name#20613245, inter_production_lot_id#20613246, inter_production_trans_date#20613247, inter_production_output_quantity#20613248, inter_production_output_unit#20613249, inter_production_material#20613250, inter_production_input_quantity#20613251, inter_production_input_unit#20613252, inter_pod_input_product_code#20613253, inter_pod_input_product_name#20613254, inter_pod_inbound_reference_id#20613255, inter_pod_inbound_Supplier_Name#20613256, inter_pod_inbound_supplier_facility_uid#20613257, inter_pod_supplier_facility_name#20613258, inter_pod_address_country#20613259, inter_pod_inbound_seller_lot_id#20613260, inter_pod_inbound_facility_uid#20613261, inter_pod_inbound_facility_country#20613262, inter_pod_inbound_facility_name#20613263, inter_pod_inbound_trans_date#20613264, inter_pod_inbound_quantity#20613265, inter_pod_inbound_unit#20613266, inter_pod_inbound_seller_uom_quantity#20613267, inter_pod_inbound_seller_uom_unit#20613268, inter_pod_input_material_composition#20613269, inter_pod_business_document_number#20613270, inter_pod_inbound_document_yes_no#20613271, bigid#20613272L]
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#20616246L]
Results [1]: [count#20616247L]
(6) Exchange
Input [1]: [count#20616247L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=3345074]
(7) ShuffleQueryStage
Output [1]: [count#20616247L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#20616247L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#20614218L]
Results [1]: [count(1)#20614218L AS count#20614219L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#20616246L]
Results [1]: [count#20616247L]
(10) Exchange
Input [1]: [count#20616247L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=3345049]
(11) HashAggregate
Input [1]: [count#20616247L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#20614218L]
Results [1]: [count(1)#20614218L AS count#20614219L]
(12) AdaptiveSparkPlan
Output [1]: [count#20614219L]
Arguments: isFinalPlan=true