== 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#15481231, facility_id#15481232, request_id#15481233, response_id#15481234, launch_id#15481235, reporting_year#15481236, template_type#15481237, request_status#15481238, supplier_id#15481239, supplier_name#15481240, material#15481241, facility_name#15481242, standard_name#15481243, rmap_id#15481244, facility_type#15481245, is_known_facility#15481246, conformance_status#15481247, rmap_status#15481248, country_code#15481249, country_name#15481250, smelter_city#15481251, is_recycled_or_scrap#15481252, smelter_key#15481253, is_drc_covered#15481254, etl_runtime#15481255]
Arguments: [company_id#15481231, facility_id#15481232, request_id#15481233, response_id#15481234, launch_id#15481235, reporting_year#15481236, template_type#15481237, request_status#15481238, supplier_id#15481239, supplier_name#15481240, material#15481241, facility_name#15481242, standard_name#15481243, rmap_id#15481244, facility_type#15481245, is_known_facility#15481246, conformance_status#15481247, rmap_status#15481248, country_code#15481249, country_name#15481250, smelter_city#15481251, is_recycled_or_scrap#15481252, smelter_key#15481253, is_drc_covered#15481254, etl_runtime#15481255]
(2) InMemoryRelation
Arguments: [company_id#15481231, facility_id#15481232, request_id#15481233, response_id#15481234, launch_id#15481235, reporting_year#15481236, template_type#15481237, request_status#15481238, supplier_id#15481239, supplier_name#15481240, material#15481241, facility_name#15481242, standard_name#15481243, rmap_id#15481244, facility_type#15481245, is_known_facility#15481246, conformance_status#15481247, rmap_status#15481248, country_code#15481249, country_name#15481250, smelter_city#15481251, is_recycled_or_scrap#15481252, smelter_key#15481253, is_drc_covered#15481254, ... 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#15481231,facility_id#15481232,request_id#15481233,response_id#15481234,launch_id#15481235,reporting_year#15481236,template_type#15481237,request_status#15481238,supplier_id#15481239,supplier_name#15481240,material#15481241,facility_name#15481242,standard_name#15481243,rmap_id#15481244,facility_type#15481245,is_known_facility#15481246,conformance_status#15481247,rmap_status#15481248,country_code#15481249,country_name#15481250,smelter_city#15481251,is_recycled_or_scrap#15481252,smelter_key#15481253,is_drc_covered#15481254,... 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#15481231, facility_id#15481232, request_id#15481233, response_id#15481234, launch_id#15481235, reporting_year#15481236, template_type#15481237, request_status#15481238, supplier_id#15481239, supplier_name#15481240, material#15481241, facility_name#15481242, standard_name#15481243, rmap_id#15481244, facility_type#15481245, is_known_facility#15481246, conformance_status#15481247, rmap_status#15481248, country_code#15481249, country_name#15481250, smelter_city#15481251, is_recycled_or_scrap#15481252, smelter_key#15481253, is_drc_covered#15481254, etl_runtime#15481255, bigid#15481256L]
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#15481231, facility_id#15481232, request_id#15481233, response_id#15481234, launch_id#15481235, reporting_year#15481236, template_type#15481237, request_status#15481238, supplier_id#15481239, supplier_name#15481240, material#15481241, facility_name#15481242, standard_name#15481243, rmap_id#15481244, facility_type#15481245, is_known_facility#15481246, conformance_status#15481247, rmap_status#15481248, country_code#15481249, country_name#15481250, smelter_city#15481251, is_recycled_or_scrap#15481252, smelter_key#15481253, is_drc_covered#15481254, etl_runtime#15481255]
Arguments: 0
(5) DeserializeToObject
Input [25]: [company_id#15481231, facility_id#15481232, request_id#15481233, response_id#15481234, launch_id#15481235, reporting_year#15481236, template_type#15481237, request_status#15481238, supplier_id#15481239, supplier_name#15481240, material#15481241, facility_name#15481242, standard_name#15481243, rmap_id#15481244, facility_type#15481245, is_known_facility#15481246, conformance_status#15481247, rmap_status#15481248, country_code#15481249, country_name#15481250, smelter_city#15481251, is_recycled_or_scrap#15481252, smelter_key#15481253, is_drc_covered#15481254, etl_runtime#15481255]
Arguments: createexternalrow(company_id#15481231.toString, facility_id#15481232.toString, request_id#15481233.toString, response_id#15481234.toString, launch_id#15481235.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#15481236, true, false, true), template_type#15481237.toString, request_status#15481238.toString, supplier_id#15481239.toString, supplier_name#15481240.toString, material#15481241.toString, facility_name#15481242.toString, standard_name#15481243.toString, rmap_id#15481244.toString, facility_type#15481245.toString, is_known_facility#15481246.toString, conformance_status#15481247.toString, rmap_status#15481248.toString, country_code#15481249.toString, country_name#15481250.toString, smelter_city#15481251.toString, is_recycled_or_scrap#15481252.toString, smelter_key#15481253.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#15481254, true, false, true), ... 26 more fields), obj#15485005: org.apache.spark.sql.Row
(6) DeserializeToObject
Input [25]: [company_id#15481231, facility_id#15481232, request_id#15481233, response_id#15481234, launch_id#15481235, reporting_year#15481236, template_type#15481237, request_status#15481238, supplier_id#15481239, supplier_name#15481240, material#15481241, facility_name#15481242, standard_name#15481243, rmap_id#15481244, facility_type#15481245, is_known_facility#15481246, conformance_status#15481247, rmap_status#15481248, country_code#15481249, country_name#15481250, smelter_city#15481251, is_recycled_or_scrap#15481252, smelter_key#15481253, is_drc_covered#15481254, etl_runtime#15481255]
Arguments: createexternalrow(company_id#15481231.toString, facility_id#15481232.toString, request_id#15481233.toString, response_id#15481234.toString, launch_id#15481235.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#15481236, true, false, true), template_type#15481237.toString, request_status#15481238.toString, supplier_id#15481239.toString, supplier_name#15481240.toString, material#15481241.toString, facility_name#15481242.toString, standard_name#15481243.toString, rmap_id#15481244.toString, facility_type#15481245.toString, is_known_facility#15481246.toString, conformance_status#15481247.toString, rmap_status#15481248.toString, country_code#15481249.toString, country_name#15481250.toString, smelter_city#15481251.toString, is_recycled_or_scrap#15481252.toString, smelter_key#15481253.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#15481254, true, false, true), ... 26 more fields), obj#15485005: org.apache.spark.sql.Row
(7) AdaptiveSparkPlan
Output [1]: [obj#15485005]
Arguments: isFinalPlan=true