== Physical Plan ==
AdaptiveSparkPlan (7)
+- == Final Plan ==
DeserializeToObject (5)
+- TableCacheQueryStage (4), Statistics(sizeInBytes=648.1 KiB, rowCount=1.59E+3)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_cm_smelter_overview WHERE bigid BETWEEN 1 AND 1587) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
DeserializeToObject (6)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_cm_smelter_overview WHERE bigid BETWEEN 1 AND 1587) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output [25]: [company_id#15157762, facility_id#15157763, request_id#15157764, response_id#15157765, launch_id#15157766, reporting_year#15157767, template_type#15157768, request_status#15157769, supplier_id#15157770, supplier_name#15157771, material#15157772, facility_name#15157773, standard_name#15157774, rmap_id#15157775, facility_type#15157776, is_known_facility#15157777, conformance_status#15157778, rmap_status#15157779, country_code#15157780, country_name#15157781, smelter_city#15157782, is_recycled_or_scrap#15157783, smelter_key#15157784, is_drc_covered#15157785, etl_runtime#15157786]
Arguments: [company_id#15157762, facility_id#15157763, request_id#15157764, response_id#15157765, launch_id#15157766, reporting_year#15157767, template_type#15157768, request_status#15157769, supplier_id#15157770, supplier_name#15157771, material#15157772, facility_name#15157773, standard_name#15157774, rmap_id#15157775, facility_type#15157776, is_known_facility#15157777, conformance_status#15157778, rmap_status#15157779, country_code#15157780, country_name#15157781, smelter_city#15157782, is_recycled_or_scrap#15157783, smelter_key#15157784, is_drc_covered#15157785, etl_runtime#15157786]
(2) InMemoryRelation
Arguments: [company_id#15157762, facility_id#15157763, request_id#15157764, response_id#15157765, launch_id#15157766, reporting_year#15157767, template_type#15157768, request_status#15157769, supplier_id#15157770, supplier_name#15157771, material#15157772, facility_name#15157773, standard_name#15157774, rmap_id#15157775, facility_type#15157776, is_known_facility#15157777, conformance_status#15157778, rmap_status#15157779, country_code#15157780, country_name#15157781, smelter_city#15157782, is_recycled_or_scrap#15157783, smelter_key#15157784, is_drc_covered#15157785, ... 2 more fields], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@730ae8bf,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Scan JDBCRelation((SELECT * FROM dbo.fact_cm_smelter_overview WHERE bigid BETWEEN 1 AND 1587) AS page) [numPartitions=1] [company_id#15157762,facility_id#15157763,request_id#15157764,response_id#15157765,launch_id#15157766,reporting_year#15157767,template_type#15157768,request_status#15157769,supplier_id#15157770,supplier_name#15157771,material#15157772,facility_name#15157773,standard_name#15157774,rmap_id#15157775,facility_type#15157776,is_known_facility#15157777,conformance_status#15157778,rmap_status#15157779,country_code#15157780,country_name#15157781,smelter_city#15157782,is_recycled_or_scrap#15157783,smelter_key#15157784,is_drc_covered#15157785,... 2 more fields] PushedFilters: [], ReadSchema: struct<company_id:string,facility_id:string,request_id:string,response_id:string,launch_id:string...
,None)
(3) Scan JDBCRelation((SELECT * FROM dbo.fact_cm_smelter_overview WHERE bigid BETWEEN 1 AND 1587) AS page) [numPartitions=1] [codegen id : 1]
Output [26]: [company_id#15157762, facility_id#15157763, request_id#15157764, response_id#15157765, launch_id#15157766, reporting_year#15157767, template_type#15157768, request_status#15157769, supplier_id#15157770, supplier_name#15157771, material#15157772, facility_name#15157773, standard_name#15157774, rmap_id#15157775, facility_type#15157776, is_known_facility#15157777, conformance_status#15157778, rmap_status#15157779, country_code#15157780, country_name#15157781, smelter_city#15157782, is_recycled_or_scrap#15157783, smelter_key#15157784, is_drc_covered#15157785, etl_runtime#15157786, bigid#15157787L]
ReadSchema: struct<company_id:string,facility_id:string,request_id:string,response_id:string,launch_id:string,reporting_year:int,template_type:string,request_status:string,supplier_id:string,supplier_name:string,material:string,facility_name:string,standard_name:string,rmap_id:string,facility_type:string,is_known_facility:string,conformance_status:string,rmap_status:string,country_code:string,country_name:string,smelter_city:string,is_recycled_or_scrap:string,smelter_key:string,is_drc_covered:int,etl_runtime:timestamp,bigid:bigint>
(4) TableCacheQueryStage
Output [25]: [company_id#15157762, facility_id#15157763, request_id#15157764, response_id#15157765, launch_id#15157766, reporting_year#15157767, template_type#15157768, request_status#15157769, supplier_id#15157770, supplier_name#15157771, material#15157772, facility_name#15157773, standard_name#15157774, rmap_id#15157775, facility_type#15157776, is_known_facility#15157777, conformance_status#15157778, rmap_status#15157779, country_code#15157780, country_name#15157781, smelter_city#15157782, is_recycled_or_scrap#15157783, smelter_key#15157784, is_drc_covered#15157785, etl_runtime#15157786]
Arguments: 0
(5) DeserializeToObject
Input [25]: [company_id#15157762, facility_id#15157763, request_id#15157764, response_id#15157765, launch_id#15157766, reporting_year#15157767, template_type#15157768, request_status#15157769, supplier_id#15157770, supplier_name#15157771, material#15157772, facility_name#15157773, standard_name#15157774, rmap_id#15157775, facility_type#15157776, is_known_facility#15157777, conformance_status#15157778, rmap_status#15157779, country_code#15157780, country_name#15157781, smelter_city#15157782, is_recycled_or_scrap#15157783, smelter_key#15157784, is_drc_covered#15157785, etl_runtime#15157786]
Arguments: createexternalrow(company_id#15157762.toString, facility_id#15157763.toString, request_id#15157764.toString, response_id#15157765.toString, launch_id#15157766.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#15157767, true, false, true), template_type#15157768.toString, request_status#15157769.toString, supplier_id#15157770.toString, supplier_name#15157771.toString, material#15157772.toString, facility_name#15157773.toString, standard_name#15157774.toString, rmap_id#15157775.toString, facility_type#15157776.toString, is_known_facility#15157777.toString, conformance_status#15157778.toString, rmap_status#15157779.toString, country_code#15157780.toString, country_name#15157781.toString, smelter_city#15157782.toString, is_recycled_or_scrap#15157783.toString, smelter_key#15157784.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#15157785, true, false, true), ... 26 more fields), obj#15163735: org.apache.spark.sql.Row
(6) DeserializeToObject
Input [25]: [company_id#15157762, facility_id#15157763, request_id#15157764, response_id#15157765, launch_id#15157766, reporting_year#15157767, template_type#15157768, request_status#15157769, supplier_id#15157770, supplier_name#15157771, material#15157772, facility_name#15157773, standard_name#15157774, rmap_id#15157775, facility_type#15157776, is_known_facility#15157777, conformance_status#15157778, rmap_status#15157779, country_code#15157780, country_name#15157781, smelter_city#15157782, is_recycled_or_scrap#15157783, smelter_key#15157784, is_drc_covered#15157785, etl_runtime#15157786]
Arguments: createexternalrow(company_id#15157762.toString, facility_id#15157763.toString, request_id#15157764.toString, response_id#15157765.toString, launch_id#15157766.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#15157767, true, false, true), template_type#15157768.toString, request_status#15157769.toString, supplier_id#15157770.toString, supplier_name#15157771.toString, material#15157772.toString, facility_name#15157773.toString, standard_name#15157774.toString, rmap_id#15157775.toString, facility_type#15157776.toString, is_known_facility#15157777.toString, conformance_status#15157778.toString, rmap_status#15157779.toString, country_code#15157780.toString, country_name#15157781.toString, smelter_city#15157782.toString, is_recycled_or_scrap#15157783.toString, smelter_key#15157784.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#15157785, true, false, true), ... 26 more fields), obj#15163735: org.apache.spark.sql.Row
(7) AdaptiveSparkPlan
Output [1]: [obj#15163735]
Arguments: isFinalPlan=true