== 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#12518413, po_item_product_name#12518414, transaction_id#12518415, buyer_gln#12518416, seller_gln#12518417, pod_division#12518418, pod_delivery_date#12518419, pod_product_item_id#12518420, pod_product_entity#12518421, po_number#12518422, product_item_id#12518423, product_entity#12518424, brand_context_id#12518425, po_division#12518426, po_delivery_date#12518427, row_id#12518428L, parent_row_id#12518429, chain_seq#12518430, tier#12518431, production_input_type#12518432, trans_create_ts#12518433, trans_update_ts#12518434, outbound_create_ts#12518435, outbound_supplier_code#12518436, ... 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 20001 AND 30000) AS page) [numPartitions=1] [po_item_product_code#12518413,po_item_product_name#12518414,transaction_id#12518415,buyer_gln#12518416,seller_gln#12518417,pod_division#12518418,pod_delivery_date#12518419,pod_product_item_id#12518420,pod_product_entity#12518421,po_number#12518422,product_item_id#12518423,product_entity#12518424,brand_context_id#12518425,po_division#12518426,po_delivery_date#12518427,row_id#12518428L,parent_row_id#12518429,chain_seq#12518430,tier#12518431,production_input_type#12518432,trans_create_ts#12518433,trans_update_ts#12518434,outbound_create_ts#12518435,outbound_supplier_code#12518436,... 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#12518413, po_item_product_name#12518414, transaction_id#12518415, buyer_gln#12518416, seller_gln#12518417, pod_division#12518418, pod_delivery_date#12518419, pod_product_item_id#12518420, pod_product_entity#12518421, po_number#12518422, product_item_id#12518423, product_entity#12518424, brand_context_id#12518425, po_division#12518426, po_delivery_date#12518427, row_id#12518428L, parent_row_id#12518429, chain_seq#12518430, tier#12518431, production_input_type#12518432, trans_create_ts#12518433, trans_update_ts#12518434, outbound_create_ts#12518435, outbound_supplier_code#12518436, outbound_supplier_name#12518437, outbound_trans_date#12518438, outbound_quantity#12518439, outbound_quantity_unit#12518440, outbound_seller_uom_quantity#12518441, outbound_seller_uom_unit#12518442, production_facility_uid#12518443, production_facility_name#12518444, production_facility_country#12518445, production_lot_id#12518446, production_trans_date#12518447, production_quantity#12518448, production_quantity_unit#12518449, production_seller_uom_quantity#12518450, production_seller_uom_unit#12518451, production_product_type#12518452, production_product_code#12518453, production_product_name#12518454, production_inputlot_quantity#12518455, production_inputlot_unit#12518456, production_inputlot_uom_quantity#12518457, production_inputlot_uom_quantity_unit#12518458, IP_P_facility_uid#12518459, IP_P_facility_name#12518460, IP_P_facility_country#12518461, IP_P_product_type#12518462, IP_P_lot_id#12518463, IP_P_trans_date#12518464, IP_P_output_quantity#12518465, IP_P_seller_uom_quantity#12518466, IP_P_seller_uom_quantity_unit#12518467, IP_P_inputlot_quantity#12518468, IP_P_inputlot_product_uid#12518469, PPI_product_name#12518470, IP_P_inputlot_supplier_facility_uid#12518471, IP_P_Supplier_facility_name#12518472, IP_P_Supplier_facility_country#12518473, IP_P_inputlot_id#12518474, IP_P_I_facility_uid#12518475, IP_P_I_facility_name#12518476, IP_P_I_facility_country#12518477, IP_P_I_transdate#12518478, IP_P_I_quantity#12518479, IP_P__IQuanaity_Unit_Desc#12518480, IP_P_Business_Document_Number#12518481, IP_P_output_product_uid#12518482, IP_P_product_ProductName#12518483, IP_P_product_ProductType#12518484, Inbound_Seller_UID#12518485, Inbound_Seller_Name#12518486, IP_P_I_profile_uid#12518487, IP_P_I_profile_name#12518488, IP_P_MaterialComp#12518489, IP_P_inputlot_supplier_uom_quantity#12518490, IP_P_inputlot_supplier_uom_unit#12518491, inbound_id#12518492, inbound_create_ts#12518493, inbound_trans_type#12518494, inbound_status#12518495, inbound_product_code#12518496, inbound_product_name#12518497, inbound_supplier_uid#12518498, inbound_Supplier_Name#12518499, inbound_supplier_facility_uid#12518500, inbound_supplier_facility_name#12518501, inbound_supplier_facility_country#12518502, inbound_seller_lot_id#12518503, inbound_facility_uid#12518504, inbound_facility_country#12518505, inbound_facility_name#12518506, inbound_trans_date#12518507, inbound_quantity#12518508, inbound_quantity_unit#12518509, inbound_seller_uom_quantity#12518510, inbound_seller_uom_unit#12518511, input_material_composition#12518512, inbound_business_document_number#12518513, inbound_document_yes_no#12518514, inter_production_facility_uid#12518515, inter_production_facility_name#12518516, inter_production_facility_country#12518517, inter_production_article_type_id#12518518, inter_production_material_unique_code#12518519, inter_production_internal_article_name#12518520, inter_production_lot_id#12518521, inter_production_trans_date#12518522, inter_production_output_quantity#12518523, inter_production_output_unit#12518524, inter_production_material#12518525, inter_production_input_quantity#12518526, inter_production_input_unit#12518527, inter_pod_input_product_code#12518528, inter_pod_input_product_name#12518529, inter_pod_inbound_reference_id#12518530, inter_pod_inbound_Supplier_Name#12518531, inter_pod_inbound_supplier_facility_uid#12518532, inter_pod_supplier_facility_name#12518533, inter_pod_address_country#12518534, inter_pod_inbound_seller_lot_id#12518535, inter_pod_inbound_facility_uid#12518536, inter_pod_inbound_facility_country#12518537, inter_pod_inbound_facility_name#12518538, inter_pod_inbound_trans_date#12518539, inter_pod_inbound_quantity#12518540, inter_pod_inbound_unit#12518541, inter_pod_inbound_seller_uom_quantity#12518542, inter_pod_inbound_seller_uom_unit#12518543, inter_pod_input_material_composition#12518544, inter_pod_business_document_number#12518545, inter_pod_inbound_document_yes_no#12518546, bigid#12518547L]
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#12522226L]
Results [1]: [count#12522227L]
(6) Exchange
Input [1]: [count#12522227L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4022595]
(7) ShuffleQueryStage
Output [1]: [count#12522227L]
Arguments: 1
(8) HashAggregate [codegen id : 2]
Input [1]: [count#12522227L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#12519543L]
Results [1]: [count(1)#12519543L AS count#12519544L]
(9) HashAggregate
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#12522226L]
Results [1]: [count#12522227L]
(10) Exchange
Input [1]: [count#12522227L]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=4022497]
(11) HashAggregate
Input [1]: [count#12522227L]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#12519543L]
Results [1]: [count(1)#12519543L AS count#12519544L]
(12) AdaptiveSparkPlan
Output [1]: [count#12519544L]
Arguments: isFinalPlan=true