== 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#12272496, po_item_product_name#12272497, transaction_id#12272498, buyer_gln#12272499, seller_gln#12272500, pod_division#12272501, pod_delivery_date#12272502, pod_product_item_id#12272503, pod_product_entity#12272504, po_number#12272505, product_item_id#12272506, product_entity#12272507, brand_context_id#12272508, po_division#12272509, po_delivery_date#12272510, row_id#12272511L, parent_row_id#12272512, chain_seq#12272513, tier#12272514, production_input_type#12272515, trans_create_ts#12272516, trans_update_ts#12272517, outbound_create_ts#12272518, outbound_supplier_code#12272519, ... 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#12272496,po_item_product_name#12272497,transaction_id#12272498,buyer_gln#12272499,seller_gln#12272500,pod_division#12272501,pod_delivery_date#12272502,pod_product_item_id#12272503,pod_product_entity#12272504,po_number#12272505,product_item_id#12272506,product_entity#12272507,brand_context_id#12272508,po_division#12272509,po_delivery_date#12272510,row_id#12272511L,parent_row_id#12272512,chain_seq#12272513,tier#12272514,production_input_type#12272515,trans_create_ts#12272516,trans_update_ts#12272517,outbound_create_ts#12272518,outbound_supplier_code#12272519,... 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#12272496, po_item_product_name#12272497, transaction_id#12272498, buyer_gln#12272499, seller_gln#12272500, pod_division#12272501, pod_delivery_date#12272502, pod_product_item_id#12272503, pod_product_entity#12272504, po_number#12272505, product_item_id#12272506, product_entity#12272507, brand_context_id#12272508, po_division#12272509, po_delivery_date#12272510, row_id#12272511L, parent_row_id#12272512, chain_seq#12272513, tier#12272514, production_input_type#12272515, trans_create_ts#12272516, trans_update_ts#12272517, outbound_create_ts#12272518, outbound_supplier_code#12272519, outbound_supplier_name#12272520, outbound_trans_date#12272521, outbound_quantity#12272522, outbound_quantity_unit#12272523, outbound_seller_uom_quantity#12272524, outbound_seller_uom_unit#12272525, production_facility_uid#12272526, production_facility_name#12272527, production_facility_country#12272528, production_lot_id#12272529, production_trans_date#12272530, production_quantity#12272531, production_quantity_unit#12272532, production_seller_uom_quantity#12272533, production_seller_uom_unit#12272534, production_product_type#12272535, production_product_code#12272536, production_product_name#12272537, production_inputlot_quantity#12272538, production_inputlot_unit#12272539, production_inputlot_uom_quantity#12272540, production_inputlot_uom_quantity_unit#12272541, IP_P_facility_uid#12272542, IP_P_facility_name#12272543, IP_P_facility_country#12272544, IP_P_product_type#12272545, IP_P_lot_id#12272546, IP_P_trans_date#12272547, IP_P_output_quantity#12272548, IP_P_seller_uom_quantity#12272549, IP_P_seller_uom_quantity_unit#12272550, IP_P_inputlot_quantity#12272551, IP_P_inputlot_product_uid#12272552, PPI_product_name#12272553, IP_P_inputlot_supplier_facility_uid#12272554, IP_P_Supplier_facility_name#12272555, IP_P_Supplier_facility_country#12272556, IP_P_inputlot_id#12272557, IP_P_I_facility_uid#12272558, IP_P_I_facility_name#12272559, IP_P_I_facility_country#12272560, IP_P_I_transdate#12272561, IP_P_I_quantity#12272562, IP_P__IQuanaity_Unit_Desc#12272563, IP_P_Business_Document_Number#12272564, IP_P_output_product_uid#12272565, IP_P_product_ProductName#12272566, IP_P_product_ProductType#12272567, Inbound_Seller_UID#12272568, Inbound_Seller_Name#12272569, IP_P_I_profile_uid#12272570, IP_P_I_profile_name#12272571, IP_P_MaterialComp#12272572, IP_P_inputlot_supplier_uom_quantity#12272573, IP_P_inputlot_supplier_uom_unit#12272574, inbound_id#12272575, inbound_create_ts#12272576, inbound_trans_type#12272577, inbound_status#12272578, inbound_product_code#12272579, inbound_product_name#12272580, inbound_supplier_uid#12272581, inbound_Supplier_Name#12272582, inbound_supplier_facility_uid#12272583, inbound_supplier_facility_name#12272584, inbound_supplier_facility_country#12272585, inbound_seller_lot_id#12272586, inbound_facility_uid#12272587, inbound_facility_country#12272588, inbound_facility_name#12272589, inbound_trans_date#12272590, inbound_quantity#12272591, inbound_quantity_unit#12272592, inbound_seller_uom_quantity#12272593, inbound_seller_uom_unit#12272594, input_material_composition#12272595, inbound_business_document_number#12272596, inbound_document_yes_no#12272597, inter_production_facility_uid#12272598, inter_production_facility_name#12272599, inter_production_facility_country#12272600, inter_production_article_type_id#12272601, inter_production_material_unique_code#12272602, inter_production_internal_article_name#12272603, inter_production_lot_id#12272604, inter_production_trans_date#12272605, inter_production_output_quantity#12272606, inter_production_output_unit#12272607, inter_production_material#12272608, inter_production_input_quantity#12272609, inter_production_input_unit#12272610, inter_pod_input_product_code#12272611, inter_pod_input_product_name#12272612, inter_pod_inbound_reference_id#12272613, inter_pod_inbound_Supplier_Name#12272614, inter_pod_inbound_supplier_facility_uid#12272615, inter_pod_supplier_facility_name#12272616, inter_pod_address_country#12272617, inter_pod_inbound_seller_lot_id#12272618, inter_pod_inbound_facility_uid#12272619, inter_pod_inbound_facility_country#12272620, inter_pod_inbound_facility_name#12272621, inter_pod_inbound_trans_date#12272622, inter_pod_inbound_quantity#12272623, inter_pod_inbound_unit#12272624, inter_pod_inbound_seller_uom_quantity#12272625, inter_pod_inbound_seller_uom_unit#12272626, inter_pod_input_material_composition#12272627, inter_pod_business_document_number#12272628, inter_pod_inbound_document_yes_no#12272629, bigid#12272630L]
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#12275604L]
Results [1]: [count#12275605L]
(6) Exchange
Input [1]: [count#12275605L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4009382]
(7) ShuffleQueryStage
Output [1]: [count#12275605L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#12275605L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#12273576L]
Results [1]: [count(1)#12273576L AS count#12273577L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#12275604L]
Results [1]: [count#12275605L]
(10) Exchange
Input [1]: [count#12275605L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4009357]
(11) HashAggregate
Input [1]: [count#12275605L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#12273576L]
Results [1]: [count(1)#12273576L AS count#12273577L]
(12) AdaptiveSparkPlan
Output [1]: [count#12273577L]
Arguments: isFinalPlan=true