== 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#20607490, facility_id#20607491, request_id#20607492, response_id#20607493, launch_id#20607494, reporting_year#20607495, template_type#20607496, request_status#20607497, supplier_id#20607498, supplier_name#20607499, material#20607500, facility_name#20607501, standard_name#20607502, rmap_id#20607503, facility_type#20607504, is_known_facility#20607505, conformance_status#20607506, rmap_status#20607507, country_code#20607508, country_name#20607509, smelter_city#20607510, is_recycled_or_scrap#20607511, smelter_key#20607512, is_drc_covered#20607513, etl_runtime#20607514]
Arguments: [company_id#20607490, facility_id#20607491, request_id#20607492, response_id#20607493, launch_id#20607494, reporting_year#20607495, template_type#20607496, request_status#20607497, supplier_id#20607498, supplier_name#20607499, material#20607500, facility_name#20607501, standard_name#20607502, rmap_id#20607503, facility_type#20607504, is_known_facility#20607505, conformance_status#20607506, rmap_status#20607507, country_code#20607508, country_name#20607509, smelter_city#20607510, is_recycled_or_scrap#20607511, smelter_key#20607512, is_drc_covered#20607513, etl_runtime#20607514]
(2) InMemoryRelation
Arguments: [company_id#20607490, facility_id#20607491, request_id#20607492, response_id#20607493, launch_id#20607494, reporting_year#20607495, template_type#20607496, request_status#20607497, supplier_id#20607498, supplier_name#20607499, material#20607500, facility_name#20607501, standard_name#20607502, rmap_id#20607503, facility_type#20607504, is_known_facility#20607505, conformance_status#20607506, rmap_status#20607507, country_code#20607508, country_name#20607509, smelter_city#20607510, is_recycled_or_scrap#20607511, smelter_key#20607512, is_drc_covered#20607513, ... 2 more fields], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@14de14ab,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#20607490,facility_id#20607491,request_id#20607492,response_id#20607493,launch_id#20607494,reporting_year#20607495,template_type#20607496,request_status#20607497,supplier_id#20607498,supplier_name#20607499,material#20607500,facility_name#20607501,standard_name#20607502,rmap_id#20607503,facility_type#20607504,is_known_facility#20607505,conformance_status#20607506,rmap_status#20607507,country_code#20607508,country_name#20607509,smelter_city#20607510,is_recycled_or_scrap#20607511,smelter_key#20607512,is_drc_covered#20607513,... 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#20607490, facility_id#20607491, request_id#20607492, response_id#20607493, launch_id#20607494, reporting_year#20607495, template_type#20607496, request_status#20607497, supplier_id#20607498, supplier_name#20607499, material#20607500, facility_name#20607501, standard_name#20607502, rmap_id#20607503, facility_type#20607504, is_known_facility#20607505, conformance_status#20607506, rmap_status#20607507, country_code#20607508, country_name#20607509, smelter_city#20607510, is_recycled_or_scrap#20607511, smelter_key#20607512, is_drc_covered#20607513, etl_runtime#20607514, bigid#20607515L]
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#20607490, facility_id#20607491, request_id#20607492, response_id#20607493, launch_id#20607494, reporting_year#20607495, template_type#20607496, request_status#20607497, supplier_id#20607498, supplier_name#20607499, material#20607500, facility_name#20607501, standard_name#20607502, rmap_id#20607503, facility_type#20607504, is_known_facility#20607505, conformance_status#20607506, rmap_status#20607507, country_code#20607508, country_name#20607509, smelter_city#20607510, is_recycled_or_scrap#20607511, smelter_key#20607512, is_drc_covered#20607513, etl_runtime#20607514]
Arguments: 0
(5) DeserializeToObject
Input [25]: [company_id#20607490, facility_id#20607491, request_id#20607492, response_id#20607493, launch_id#20607494, reporting_year#20607495, template_type#20607496, request_status#20607497, supplier_id#20607498, supplier_name#20607499, material#20607500, facility_name#20607501, standard_name#20607502, rmap_id#20607503, facility_type#20607504, is_known_facility#20607505, conformance_status#20607506, rmap_status#20607507, country_code#20607508, country_name#20607509, smelter_city#20607510, is_recycled_or_scrap#20607511, smelter_key#20607512, is_drc_covered#20607513, etl_runtime#20607514]
Arguments: createexternalrow(company_id#20607490.toString, facility_id#20607491.toString, request_id#20607492.toString, response_id#20607493.toString, launch_id#20607494.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#20607495, true, false, true), template_type#20607496.toString, request_status#20607497.toString, supplier_id#20607498.toString, supplier_name#20607499.toString, material#20607500.toString, facility_name#20607501.toString, standard_name#20607502.toString, rmap_id#20607503.toString, facility_type#20607504.toString, is_known_facility#20607505.toString, conformance_status#20607506.toString, rmap_status#20607507.toString, country_code#20607508.toString, country_name#20607509.toString, smelter_city#20607510.toString, is_recycled_or_scrap#20607511.toString, smelter_key#20607512.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#20607513, true, false, true), ... 26 more fields), obj#20608670: org.apache.spark.sql.Row
(6) DeserializeToObject
Input [25]: [company_id#20607490, facility_id#20607491, request_id#20607492, response_id#20607493, launch_id#20607494, reporting_year#20607495, template_type#20607496, request_status#20607497, supplier_id#20607498, supplier_name#20607499, material#20607500, facility_name#20607501, standard_name#20607502, rmap_id#20607503, facility_type#20607504, is_known_facility#20607505, conformance_status#20607506, rmap_status#20607507, country_code#20607508, country_name#20607509, smelter_city#20607510, is_recycled_or_scrap#20607511, smelter_key#20607512, is_drc_covered#20607513, etl_runtime#20607514]
Arguments: createexternalrow(company_id#20607490.toString, facility_id#20607491.toString, request_id#20607492.toString, response_id#20607493.toString, launch_id#20607494.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#20607495, true, false, true), template_type#20607496.toString, request_status#20607497.toString, supplier_id#20607498.toString, supplier_name#20607499.toString, material#20607500.toString, facility_name#20607501.toString, standard_name#20607502.toString, rmap_id#20607503.toString, facility_type#20607504.toString, is_known_facility#20607505.toString, conformance_status#20607506.toString, rmap_status#20607507.toString, country_code#20607508.toString, country_name#20607509.toString, smelter_city#20607510.toString, is_recycled_or_scrap#20607511.toString, smelter_key#20607512.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#20607513, true, false, true), ... 26 more fields), obj#20608670: org.apache.spark.sql.Row
(7) AdaptiveSparkPlan
Output [1]: [obj#20608670]
Arguments: isFinalPlan=true