== 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#216310, facility_id#216311, request_id#216312, response_id#216313, launch_id#216314, reporting_year#216315, template_type#216316, request_status#216317, supplier_id#216318, supplier_name#216319, material#216320, facility_name#216321, standard_name#216322, rmap_id#216323, facility_type#216324, is_known_facility#216325, conformance_status#216326, rmap_status#216327, country_code#216328, country_name#216329, smelter_city#216330, is_recycled_or_scrap#216331, smelter_key#216332, is_drc_covered#216333, etl_runtime#216334]
Arguments: [company_id#216310, facility_id#216311, request_id#216312, response_id#216313, launch_id#216314, reporting_year#216315, template_type#216316, request_status#216317, supplier_id#216318, supplier_name#216319, material#216320, facility_name#216321, standard_name#216322, rmap_id#216323, facility_type#216324, is_known_facility#216325, conformance_status#216326, rmap_status#216327, country_code#216328, country_name#216329, smelter_city#216330, is_recycled_or_scrap#216331, smelter_key#216332, is_drc_covered#216333, etl_runtime#216334]
(2) InMemoryRelation
Arguments: [company_id#216310, facility_id#216311, request_id#216312, response_id#216313, launch_id#216314, reporting_year#216315, template_type#216316, request_status#216317, supplier_id#216318, supplier_name#216319, material#216320, facility_name#216321, standard_name#216322, rmap_id#216323, facility_type#216324, is_known_facility#216325, conformance_status#216326, rmap_status#216327, country_code#216328, country_name#216329, smelter_city#216330, is_recycled_or_scrap#216331, smelter_key#216332, is_drc_covered#216333, ... 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#216310,facility_id#216311,request_id#216312,response_id#216313,launch_id#216314,reporting_year#216315,template_type#216316,request_status#216317,supplier_id#216318,supplier_name#216319,material#216320,facility_name#216321,standard_name#216322,rmap_id#216323,facility_type#216324,is_known_facility#216325,conformance_status#216326,rmap_status#216327,country_code#216328,country_name#216329,smelter_city#216330,is_recycled_or_scrap#216331,smelter_key#216332,is_drc_covered#216333,... 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#216310, facility_id#216311, request_id#216312, response_id#216313, launch_id#216314, reporting_year#216315, template_type#216316, request_status#216317, supplier_id#216318, supplier_name#216319, material#216320, facility_name#216321, standard_name#216322, rmap_id#216323, facility_type#216324, is_known_facility#216325, conformance_status#216326, rmap_status#216327, country_code#216328, country_name#216329, smelter_city#216330, is_recycled_or_scrap#216331, smelter_key#216332, is_drc_covered#216333, etl_runtime#216334, bigid#216335L]
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#216310, facility_id#216311, request_id#216312, response_id#216313, launch_id#216314, reporting_year#216315, template_type#216316, request_status#216317, supplier_id#216318, supplier_name#216319, material#216320, facility_name#216321, standard_name#216322, rmap_id#216323, facility_type#216324, is_known_facility#216325, conformance_status#216326, rmap_status#216327, country_code#216328, country_name#216329, smelter_city#216330, is_recycled_or_scrap#216331, smelter_key#216332, is_drc_covered#216333, etl_runtime#216334]
Arguments: 0
(5) DeserializeToObject
Input [25]: [company_id#216310, facility_id#216311, request_id#216312, response_id#216313, launch_id#216314, reporting_year#216315, template_type#216316, request_status#216317, supplier_id#216318, supplier_name#216319, material#216320, facility_name#216321, standard_name#216322, rmap_id#216323, facility_type#216324, is_known_facility#216325, conformance_status#216326, rmap_status#216327, country_code#216328, country_name#216329, smelter_city#216330, is_recycled_or_scrap#216331, smelter_key#216332, is_drc_covered#216333, etl_runtime#216334]
Arguments: createexternalrow(company_id#216310.toString, facility_id#216311.toString, request_id#216312.toString, response_id#216313.toString, launch_id#216314.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#216315, true, false, true), template_type#216316.toString, request_status#216317.toString, supplier_id#216318.toString, supplier_name#216319.toString, material#216320.toString, facility_name#216321.toString, standard_name#216322.toString, rmap_id#216323.toString, facility_type#216324.toString, is_known_facility#216325.toString, conformance_status#216326.toString, rmap_status#216327.toString, country_code#216328.toString, country_name#216329.toString, smelter_city#216330.toString, is_recycled_or_scrap#216331.toString, smelter_key#216332.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#216333, true, false, true), ... 26 more fields), obj#222283: org.apache.spark.sql.Row
(6) DeserializeToObject
Input [25]: [company_id#216310, facility_id#216311, request_id#216312, response_id#216313, launch_id#216314, reporting_year#216315, template_type#216316, request_status#216317, supplier_id#216318, supplier_name#216319, material#216320, facility_name#216321, standard_name#216322, rmap_id#216323, facility_type#216324, is_known_facility#216325, conformance_status#216326, rmap_status#216327, country_code#216328, country_name#216329, smelter_city#216330, is_recycled_or_scrap#216331, smelter_key#216332, is_drc_covered#216333, etl_runtime#216334]
Arguments: createexternalrow(company_id#216310.toString, facility_id#216311.toString, request_id#216312.toString, response_id#216313.toString, launch_id#216314.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#216315, true, false, true), template_type#216316.toString, request_status#216317.toString, supplier_id#216318.toString, supplier_name#216319.toString, material#216320.toString, facility_name#216321.toString, standard_name#216322.toString, rmap_id#216323.toString, facility_type#216324.toString, is_known_facility#216325.toString, conformance_status#216326.toString, rmap_status#216327.toString, country_code#216328.toString, country_name#216329.toString, smelter_city#216330.toString, is_recycled_or_scrap#216331.toString, smelter_key#216332.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#216333, true, false, true), ... 26 more fields), obj#222283: org.apache.spark.sql.Row
(7) AdaptiveSparkPlan
Output [1]: [obj#222283]
Arguments: isFinalPlan=true