== 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#17538131, facility_id#17538132, request_id#17538133, response_id#17538134, launch_id#17538135, reporting_year#17538136, template_type#17538137, request_status#17538138, supplier_id#17538139, supplier_name#17538140, material#17538141, facility_name#17538142, standard_name#17538143, rmap_id#17538144, facility_type#17538145, is_known_facility#17538146, conformance_status#17538147, rmap_status#17538148, country_code#17538149, country_name#17538150, smelter_city#17538151, is_recycled_or_scrap#17538152, smelter_key#17538153, is_drc_covered#17538154, etl_runtime#17538155]
Arguments: [company_id#17538131, facility_id#17538132, request_id#17538133, response_id#17538134, launch_id#17538135, reporting_year#17538136, template_type#17538137, request_status#17538138, supplier_id#17538139, supplier_name#17538140, material#17538141, facility_name#17538142, standard_name#17538143, rmap_id#17538144, facility_type#17538145, is_known_facility#17538146, conformance_status#17538147, rmap_status#17538148, country_code#17538149, country_name#17538150, smelter_city#17538151, is_recycled_or_scrap#17538152, smelter_key#17538153, is_drc_covered#17538154, etl_runtime#17538155]
(2) InMemoryRelation
Arguments: [company_id#17538131, facility_id#17538132, request_id#17538133, response_id#17538134, launch_id#17538135, reporting_year#17538136, template_type#17538137, request_status#17538138, supplier_id#17538139, supplier_name#17538140, material#17538141, facility_name#17538142, standard_name#17538143, rmap_id#17538144, facility_type#17538145, is_known_facility#17538146, conformance_status#17538147, rmap_status#17538148, country_code#17538149, country_name#17538150, smelter_city#17538151, is_recycled_or_scrap#17538152, smelter_key#17538153, is_drc_covered#17538154, ... 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#17538131,facility_id#17538132,request_id#17538133,response_id#17538134,launch_id#17538135,reporting_year#17538136,template_type#17538137,request_status#17538138,supplier_id#17538139,supplier_name#17538140,material#17538141,facility_name#17538142,standard_name#17538143,rmap_id#17538144,facility_type#17538145,is_known_facility#17538146,conformance_status#17538147,rmap_status#17538148,country_code#17538149,country_name#17538150,smelter_city#17538151,is_recycled_or_scrap#17538152,smelter_key#17538153,is_drc_covered#17538154,... 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#17538131, facility_id#17538132, request_id#17538133, response_id#17538134, launch_id#17538135, reporting_year#17538136, template_type#17538137, request_status#17538138, supplier_id#17538139, supplier_name#17538140, material#17538141, facility_name#17538142, standard_name#17538143, rmap_id#17538144, facility_type#17538145, is_known_facility#17538146, conformance_status#17538147, rmap_status#17538148, country_code#17538149, country_name#17538150, smelter_city#17538151, is_recycled_or_scrap#17538152, smelter_key#17538153, is_drc_covered#17538154, etl_runtime#17538155, bigid#17538156L]
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#17538131, facility_id#17538132, request_id#17538133, response_id#17538134, launch_id#17538135, reporting_year#17538136, template_type#17538137, request_status#17538138, supplier_id#17538139, supplier_name#17538140, material#17538141, facility_name#17538142, standard_name#17538143, rmap_id#17538144, facility_type#17538145, is_known_facility#17538146, conformance_status#17538147, rmap_status#17538148, country_code#17538149, country_name#17538150, smelter_city#17538151, is_recycled_or_scrap#17538152, smelter_key#17538153, is_drc_covered#17538154, etl_runtime#17538155]
Arguments: 0
(5) DeserializeToObject
Input [25]: [company_id#17538131, facility_id#17538132, request_id#17538133, response_id#17538134, launch_id#17538135, reporting_year#17538136, template_type#17538137, request_status#17538138, supplier_id#17538139, supplier_name#17538140, material#17538141, facility_name#17538142, standard_name#17538143, rmap_id#17538144, facility_type#17538145, is_known_facility#17538146, conformance_status#17538147, rmap_status#17538148, country_code#17538149, country_name#17538150, smelter_city#17538151, is_recycled_or_scrap#17538152, smelter_key#17538153, is_drc_covered#17538154, etl_runtime#17538155]
Arguments: createexternalrow(company_id#17538131.toString, facility_id#17538132.toString, request_id#17538133.toString, response_id#17538134.toString, launch_id#17538135.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#17538136, true, false, true), template_type#17538137.toString, request_status#17538138.toString, supplier_id#17538139.toString, supplier_name#17538140.toString, material#17538141.toString, facility_name#17538142.toString, standard_name#17538143.toString, rmap_id#17538144.toString, facility_type#17538145.toString, is_known_facility#17538146.toString, conformance_status#17538147.toString, rmap_status#17538148.toString, country_code#17538149.toString, country_name#17538150.toString, smelter_city#17538151.toString, is_recycled_or_scrap#17538152.toString, smelter_key#17538153.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#17538154, true, false, true), ... 26 more fields), obj#17543396: org.apache.spark.sql.Row
(6) DeserializeToObject
Input [25]: [company_id#17538131, facility_id#17538132, request_id#17538133, response_id#17538134, launch_id#17538135, reporting_year#17538136, template_type#17538137, request_status#17538138, supplier_id#17538139, supplier_name#17538140, material#17538141, facility_name#17538142, standard_name#17538143, rmap_id#17538144, facility_type#17538145, is_known_facility#17538146, conformance_status#17538147, rmap_status#17538148, country_code#17538149, country_name#17538150, smelter_city#17538151, is_recycled_or_scrap#17538152, smelter_key#17538153, is_drc_covered#17538154, etl_runtime#17538155]
Arguments: createexternalrow(company_id#17538131.toString, facility_id#17538132.toString, request_id#17538133.toString, response_id#17538134.toString, launch_id#17538135.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#17538136, true, false, true), template_type#17538137.toString, request_status#17538138.toString, supplier_id#17538139.toString, supplier_name#17538140.toString, material#17538141.toString, facility_name#17538142.toString, standard_name#17538143.toString, rmap_id#17538144.toString, facility_type#17538145.toString, is_known_facility#17538146.toString, conformance_status#17538147.toString, rmap_status#17538148.toString, country_code#17538149.toString, country_name#17538150.toString, smelter_city#17538151.toString, is_recycled_or_scrap#17538152.toString, smelter_key#17538153.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#17538154, true, false, true), ... 26 more fields), obj#17543396: org.apache.spark.sql.Row
(7) AdaptiveSparkPlan
Output [1]: [obj#17543396]
Arguments: isFinalPlan=true