digraph G {
0 [labelType="html" label="<br><b>AdaptiveSparkPlan</b><br><br>"];
1 [labelType="html" label="<br><b>DeserializeToObject</b><br><br>"];
2 [labelType="html" label="<b>InMemoryTableScan</b><br><br>number of output rows: 162"];
subgraph cluster3 {
isCluster="true";
label="WholeStageCodegen (1)\n \nduration: 0 ms";
4 [labelType="html" label="<b>Scan JDBCRelation((SELECT * FROM dbo.fact_cm_country_analysis WHERE bigid BETWEEN 1 AND 162) AS page) [numPartitions=1] </b><br><br>number of output rows: 0"];
}
1->0;
2->1;
4->2;
}
5
AdaptiveSparkPlan isFinalPlan=true
DeserializeToObject createexternalrow(company_id#20601305.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#20601306, true, false, true), country_code#20601307.toString, country_name#20601308.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, total_smelters#20601309, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, conflict_free_count#20601310, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, audit_committed_count#20601311, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, undeterminable_count#20601312, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, active_smelters#20601313, true, false, true), minerals_list#20601314.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#20601315, true, false, true), staticinvoke(class org.apache.spark.sql.catalyst.util.DateTimeUtils$, ObjectType(class java.sql.Timestamp), toJavaTimestamp, etl_runtime#20601316, true, false, true), StructField(company_id,StringType,true), StructField(reporting_year,IntegerType,true), StructField(country_code,StringType,true), StructField(country_name,StringType,true), StructField(total_smelters,IntegerType,true), StructField(conflict_free_count,IntegerType,true), StructField(audit_committed_count,IntegerType,true), StructField(undeterminable_count,IntegerType,true), StructField(active_smelters,IntegerType,true), StructField(minerals_list,StringType,true), StructField(is_drc_covered,IntegerType,true), StructField(etl_runtime,TimestampType,true)), obj#20601887: org.apache.spark.sql.Row
InMemoryTableScan [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316]
Scan JDBCRelation((SELECT * FROM dbo.fact_cm_country_analysis WHERE bigid BETWEEN 1 AND 162) AS page) [numPartitions=1] [company_id#20601305,reporting_year#20601306,country_code#20601307,country_name#20601308,total_smelters#20601309,conflict_free_count#20601310,audit_committed_count#20601311,undeterminable_count#20601312,active_smelters#20601313,minerals_list#20601314,is_drc_covered#20601315,etl_runtime#20601316,bigid#20601317L] PushedFilters: [], ReadSchema: struct<company_id:string,reporting_year:int,country_code:string,country_name:string,total_smelter...
WholeStageCodegen (1)
== Physical Plan ==
AdaptiveSparkPlan (7)
+- == Final Plan ==
DeserializeToObject (5)
+- TableCacheQueryStage (4), Statistics(sizeInBytes=19.3 KiB, rowCount=162)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_cm_country_analysis WHERE bigid BETWEEN 1 AND 162) AS page) [numPartitions=1] (3)
+- == Initial Plan ==
DeserializeToObject (6)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Scan JDBCRelation((SELECT * FROM dbo.fact_cm_country_analysis WHERE bigid BETWEEN 1 AND 162) AS page) [numPartitions=1] (3)
(1) InMemoryTableScan
Output [12]: [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316]
Arguments: [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316]
(2) InMemoryRelation
Arguments: [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316, bigid#20601317L], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@14de14ab,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Scan JDBCRelation((SELECT * FROM dbo.fact_cm_country_analysis WHERE bigid BETWEEN 1 AND 162) AS page) [numPartitions=1] [company_id#20601305,reporting_year#20601306,country_code#20601307,country_name#20601308,total_smelters#20601309,conflict_free_count#20601310,audit_committed_count#20601311,undeterminable_count#20601312,active_smelters#20601313,minerals_list#20601314,is_drc_covered#20601315,etl_runtime#20601316,bigid#20601317L] PushedFilters: [], ReadSchema: struct<company_id:string,reporting_year:int,country_code:string,country_name:string,total_smelter...
,None)
(3) Scan JDBCRelation((SELECT * FROM dbo.fact_cm_country_analysis WHERE bigid BETWEEN 1 AND 162) AS page) [numPartitions=1] [codegen id : 1]
Output [13]: [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316, bigid#20601317L]
ReadSchema: struct<company_id:string,reporting_year:int,country_code:string,country_name:string,total_smelters:int,conflict_free_count:int,audit_committed_count:int,undeterminable_count:int,active_smelters:int,minerals_list:string,is_drc_covered:int,etl_runtime:timestamp,bigid:bigint>
(4) TableCacheQueryStage
Output [12]: [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316]
Arguments: 0
(5) DeserializeToObject
Input [12]: [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316]
Arguments: createexternalrow(company_id#20601305.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#20601306, true, false, true), country_code#20601307.toString, country_name#20601308.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, total_smelters#20601309, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, conflict_free_count#20601310, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, audit_committed_count#20601311, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, undeterminable_count#20601312, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, active_smelters#20601313, true, false, true), minerals_list#20601314.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#20601315, true, false, true), staticinvoke(class org.apache.spark.sql.catalyst.util.DateTimeUtils$, ObjectType(class java.sql.Timestamp), toJavaTimestamp, etl_runtime#20601316, true, false, true), StructField(company_id,StringType,true), StructField(reporting_year,IntegerType,true), StructField(country_code,StringType,true), StructField(country_name,StringType,true), StructField(total_smelters,IntegerType,true), StructField(conflict_free_count,IntegerType,true), StructField(audit_committed_count,IntegerType,true), StructField(undeterminable_count,IntegerType,true), StructField(active_smelters,IntegerType,true), StructField(minerals_list,StringType,true), StructField(is_drc_covered,IntegerType,true), StructField(etl_runtime,TimestampType,true)), obj#20601887: org.apache.spark.sql.Row
(6) DeserializeToObject
Input [12]: [company_id#20601305, reporting_year#20601306, country_code#20601307, country_name#20601308, total_smelters#20601309, conflict_free_count#20601310, audit_committed_count#20601311, undeterminable_count#20601312, active_smelters#20601313, minerals_list#20601314, is_drc_covered#20601315, etl_runtime#20601316]
Arguments: createexternalrow(company_id#20601305.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, reporting_year#20601306, true, false, true), country_code#20601307.toString, country_name#20601308.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, total_smelters#20601309, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, conflict_free_count#20601310, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, audit_committed_count#20601311, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, undeterminable_count#20601312, true, false, true), staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, active_smelters#20601313, true, false, true), minerals_list#20601314.toString, staticinvoke(class java.lang.Integer, ObjectType(class java.lang.Integer), valueOf, is_drc_covered#20601315, true, false, true), staticinvoke(class org.apache.spark.sql.catalyst.util.DateTimeUtils$, ObjectType(class java.sql.Timestamp), toJavaTimestamp, etl_runtime#20601316, true, false, true), StructField(company_id,StringType,true), StructField(reporting_year,IntegerType,true), StructField(country_code,StringType,true), StructField(country_name,StringType,true), StructField(total_smelters,IntegerType,true), StructField(conflict_free_count,IntegerType,true), StructField(audit_committed_count,IntegerType,true), StructField(undeterminable_count,IntegerType,true), StructField(active_smelters,IntegerType,true), StructField(minerals_list,StringType,true), StructField(is_drc_covered,IntegerType,true), StructField(etl_runtime,TimestampType,true)), obj#20601887: org.apache.spark.sql.Row
(7) AdaptiveSparkPlan
Output [1]: [obj#20601887]
Arguments: isFinalPlan=true