Project [CASE WHEN ((fractile#94275221 = NA) OR (fractile#94275221 = null)) THEN null ELSE cast(fractile#94275221 as int) END AS fractile#94275269, CASE WHEN (cap#94275222 = null) THEN null ELSE cap#94275222 END AS cap#94275270, CASE WHEN ((size#94275223 = NA) OR (size#94275223 = null)) THEN null ELSE cast(size#94275223 as float) END AS size#94275271, CASE WHEN ((value#94275224 = NA) OR (value#94275224 = null)) THEN null ELSE cast(value#94275224 as float) END AS value#94275272, CASE WHEN ((growth#94275225 = NA) OR (growth#94275225 = null)) THEN null ELSE cast(growth#94275225 as float) END AS growth#94275273, CASE WHEN ((leverage#94275226 = NA) OR (leverage#94275226 = null)) THEN null ELSE cast(leverage#94275226 as float) END AS leverage#94275274, CASE WHEN ((volatility#94275227 = NA) OR (volatility#94275227 = null)) THEN null ELSE cast(volatility#94275227 as float) END AS volatility#94275275, CASE WHEN ((momentum#94275228 = NA) OR (momentum#94275228 = null)) THEN null ELSE cast(momentum#94275228 as float) END AS momentum#94275276, CASE WHEN ((yield#94275229 = NA) OR (yield#94275229 = null)) THEN null ELSE cast(yield#94275229 as float) END AS yield#94275277, CASE WHEN ((##94275230 = NA) OR (##94275230 = null)) THEN null ELSE cast(##94275230 as float) END AS ##94275278, CASE WHEN (min_date#94275231 = null) THEN null ELSE cast(min_date#94275231 as date) END AS min_date#94275279, CASE WHEN (max_date#94275232 = null) THEN null ELSE cast(max_date#94275232 as date) END AS max_date#94275280]
Project [CASE WHEN ((cap#94160377 = NA) OR (cap#94160377 = null)) THEN null ELSE cast(cap#94160377 as int) END AS cap#94160394, CASE WHEN (sort#94160378 = null) THEN null ELSE sort#94160378 END AS sort#94160395, CASE WHEN (description#94160379 = null) THEN null ELSE description#94160379 END AS description#94160396, CASE WHEN ((universe#94160380 = NA) OR (universe#94160380 = null)) THEN null ELSE cast(universe#94160380 as int) END AS universe#94160397]
== Physical Plan ==
CollectLimit (20)
+- InMemoryTableScan (1)
+- InMemoryRelation (2)
+- * Sort (19)
+- Exchange (18)
+- * Project (17)
+- * BroadcastHashJoin Inner BuildRight (16)
:- * Project (8)
: +- * Filter (7)
: +- InMemoryTableScan (3)
: +- InMemoryRelation (4)
: +- * Project (6)
: +- Scan csv (5)
+- BroadcastExchange (15)
+- * Project (14)
+- * Filter (13)
+- InMemoryTableScan (9)
+- InMemoryRelation (10)
+- * Project (12)
+- Scan csv (11)
(1) InMemoryTableScan
Output [11]: [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
Arguments: [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
(2) InMemoryRelation
Arguments: [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@208e3fd9,StorageLevel(disk, memory, deserialized, 1 replicas),*(3) Sort [fractile#94275269 ASC NULLS FIRST], true, 0
+- Exchange rangepartitioning(fractile#94275269 ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, [id=#7527055]
+- *(2) Project [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
+- *(2) BroadcastHashJoin [cap_description#94275293], [description#94160396], Inner, BuildRight, false
:- *(2) Project [fractile#94275269, cap#94275270 AS cap_description#94275293, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
: +- *(2) Filter ((isnotnull(fractile#94275269) AND NOT (fractile#94275269 = -1)) AND isnotnull(cap#94275270))
: +- InMemoryTableScan [##94275278, cap#94275270, fractile#94275269, growth#94275273, leverage#94275274, max_date#94275280, min_date#94275279, momentum#94275276, size#94275271, value#94275272, volatility#94275275, yield#94275277], [isnotnull(fractile#94275269), NOT (fractile#94275269 = -1), isnotnull(cap#94275270)]
: +- InMemoryRelation [fractile#94275269, cap#94275270, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- *(1) Project [CASE WHEN ((fractile#94275221 = NA) OR (fractile#94275221 = null)) THEN null ELSE cast(fractile#94275221 as int) END AS fractile#94275269, CASE WHEN (cap#94275222 = null) THEN null ELSE cap#94275222 END AS cap#94275270, CASE WHEN ((size#94275223 = NA) OR (size#94275223 = null)) THEN null ELSE cast(size#94275223 as float) END AS size#94275271, CASE WHEN ((value#94275224 = NA) OR (value#94275224 = null)) THEN null ELSE cast(value#94275224 as float) END AS value#94275272, CASE WHEN ((growth#94275225 = NA) OR (growth#94275225 = null)) THEN null ELSE cast(growth#94275225 as float) END AS growth#94275273, CASE WHEN ((leverage#94275226 = NA) OR (leverage#94275226 = null)) THEN null ELSE cast(leverage#94275226 as float) END AS leverage#94275274, CASE WHEN ((volatility#94275227 = NA) OR (volatility#94275227 = null)) THEN null ELSE cast(volatility#94275227 as float) END AS volatility#94275275, CASE WHEN ((momentum#94275228 = NA) OR (momentum#94275228 = null)) THEN null ELSE cast(momentum#94275228 as float) END AS momentum#94275276, CASE WHEN ((yield#94275229 = NA) OR (yield#94275229 = null)) THEN null ELSE cast(yield#94275229 as float) END AS yield#94275277, CASE WHEN ((##94275230 = NA) OR (##94275230 = null)) THEN null ELSE cast(##94275230 as float) END AS ##94275278, CASE WHEN (min_date#94275231 = null) THEN null ELSE cast(min_date#94275231 as date) END AS min_date#94275279, CASE WHEN (max_date#94275232 = null) THEN null ELSE cast(max_date#94275232 as date) END AS max_date#94275280]
: +- FileScan csv [fractile#94275221,cap#94275222,size#94275223,value#94275224,growth#94275225,leverage#94275226,volatility#94275227,momentum#94275228,yield#94275229,##94275230,min_date#94275231,max_date#94275232] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/srv/plusamp/data/default/ea-market/output/digital_revenue_signal..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<fractile:string,cap:string,size:string,value:string,growth:string,leverage:string,volatili...
+- BroadcastExchange HashedRelationBroadcastMode(List(input[0, string, true]),false), [id=#7527050]
+- *(1) Project [description#94160396]
+- *(1) Filter ((isnotnull(cap#94160394) AND (cap#94160394 = 0)) AND isnotnull(description#94160396))
+- InMemoryTableScan [cap#94160394, description#94160396], [isnotnull(cap#94160394), (cap#94160394 = 0), isnotnull(description#94160396)]
+- InMemoryRelation [cap#94160394, sort#94160395, description#94160396, universe#94160397], StorageLevel(disk, memory, deserialized, 1 replicas)
+- *(1) Project [CASE WHEN ((cap#94160377 = NA) OR (cap#94160377 = null)) THEN null ELSE cast(cap#94160377 as int) END AS cap#94160394, CASE WHEN (sort#94160378 = null) THEN null ELSE sort#94160378 END AS sort#94160395, CASE WHEN (description#94160379 = null) THEN null ELSE description#94160379 END AS description#94160396, CASE WHEN ((universe#94160380 = NA) OR (universe#94160380 = null)) THEN null ELSE cast(universe#94160380 as int) END AS universe#94160397]
+- FileScan csv [cap#94160377,sort#94160378,description#94160379,universe#94160380] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/srv/plusamp/data/default/ea-market/curate/curate_cap.csv], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<cap:string,sort:string,description:string,universe:string>
,None), [fractile#94275269 ASC NULLS FIRST]
(3) InMemoryTableScan
Output [12]: [##94275278, cap#94275270, fractile#94275269, growth#94275273, leverage#94275274, max_date#94275280, min_date#94275279, momentum#94275276, size#94275271, value#94275272, volatility#94275275, yield#94275277]
Arguments: [##94275278, cap#94275270, fractile#94275269, growth#94275273, leverage#94275274, max_date#94275280, min_date#94275279, momentum#94275276, size#94275271, value#94275272, volatility#94275275, yield#94275277], [isnotnull(fractile#94275269), NOT (fractile#94275269 = -1), isnotnull(cap#94275270)]
(4) InMemoryRelation
Arguments: [fractile#94275269, cap#94275270, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@208e3fd9,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Project [CASE WHEN ((fractile#94275221 = NA) OR (fractile#94275221 = null)) THEN null ELSE cast(fractile#94275221 as int) END AS fractile#94275269, CASE WHEN (cap#94275222 = null) THEN null ELSE cap#94275222 END AS cap#94275270, CASE WHEN ((size#94275223 = NA) OR (size#94275223 = null)) THEN null ELSE cast(size#94275223 as float) END AS size#94275271, CASE WHEN ((value#94275224 = NA) OR (value#94275224 = null)) THEN null ELSE cast(value#94275224 as float) END AS value#94275272, CASE WHEN ((growth#94275225 = NA) OR (growth#94275225 = null)) THEN null ELSE cast(growth#94275225 as float) END AS growth#94275273, CASE WHEN ((leverage#94275226 = NA) OR (leverage#94275226 = null)) THEN null ELSE cast(leverage#94275226 as float) END AS leverage#94275274, CASE WHEN ((volatility#94275227 = NA) OR (volatility#94275227 = null)) THEN null ELSE cast(volatility#94275227 as float) END AS volatility#94275275, CASE WHEN ((momentum#94275228 = NA) OR (momentum#94275228 = null)) THEN null ELSE cast(momentum#94275228 as float) END AS momentum#94275276, CASE WHEN ((yield#94275229 = NA) OR (yield#94275229 = null)) THEN null ELSE cast(yield#94275229 as float) END AS yield#94275277, CASE WHEN ((##94275230 = NA) OR (##94275230 = null)) THEN null ELSE cast(##94275230 as float) END AS ##94275278, CASE WHEN (min_date#94275231 = null) THEN null ELSE cast(min_date#94275231 as date) END AS min_date#94275279, CASE WHEN (max_date#94275232 = null) THEN null ELSE cast(max_date#94275232 as date) END AS max_date#94275280]
+- FileScan csv [fractile#94275221,cap#94275222,size#94275223,value#94275224,growth#94275225,leverage#94275226,volatility#94275227,momentum#94275228,yield#94275229,##94275230,min_date#94275231,max_date#94275232] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/srv/plusamp/data/default/ea-market/output/digital_revenue_signal..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<fractile:string,cap:string,size:string,value:string,growth:string,leverage:string,volatili...
,None)
(5) Scan csv
Output [12]: [fractile#94275221, cap#94275222, size#94275223, value#94275224, growth#94275225, leverage#94275226, volatility#94275227, momentum#94275228, yield#94275229, ##94275230, min_date#94275231, max_date#94275232]
Batched: false
Location: InMemoryFileIndex [file:/srv/plusamp/data/default/ea-market/output/digital_revenue_signal/rev_signal_percentile_r_100/REPORT_exposures.csv]
ReadSchema: struct<fractile:string,cap:string,size:string,value:string,growth:string,leverage:string,volatility:string,momentum:string,yield:string,#:string,min_date:string,max_date:string>
(6) Project [codegen id : 1]
Output [12]: [CASE WHEN ((fractile#94275221 = NA) OR (fractile#94275221 = null)) THEN null ELSE cast(fractile#94275221 as int) END AS fractile#94275269, CASE WHEN (cap#94275222 = null) THEN null ELSE cap#94275222 END AS cap#94275270, CASE WHEN ((size#94275223 = NA) OR (size#94275223 = null)) THEN null ELSE cast(size#94275223 as float) END AS size#94275271, CASE WHEN ((value#94275224 = NA) OR (value#94275224 = null)) THEN null ELSE cast(value#94275224 as float) END AS value#94275272, CASE WHEN ((growth#94275225 = NA) OR (growth#94275225 = null)) THEN null ELSE cast(growth#94275225 as float) END AS growth#94275273, CASE WHEN ((leverage#94275226 = NA) OR (leverage#94275226 = null)) THEN null ELSE cast(leverage#94275226 as float) END AS leverage#94275274, CASE WHEN ((volatility#94275227 = NA) OR (volatility#94275227 = null)) THEN null ELSE cast(volatility#94275227 as float) END AS volatility#94275275, CASE WHEN ((momentum#94275228 = NA) OR (momentum#94275228 = null)) THEN null ELSE cast(momentum#94275228 as float) END AS momentum#94275276, CASE WHEN ((yield#94275229 = NA) OR (yield#94275229 = null)) THEN null ELSE cast(yield#94275229 as float) END AS yield#94275277, CASE WHEN ((##94275230 = NA) OR (##94275230 = null)) THEN null ELSE cast(##94275230 as float) END AS ##94275278, CASE WHEN (min_date#94275231 = null) THEN null ELSE cast(min_date#94275231 as date) END AS min_date#94275279, CASE WHEN (max_date#94275232 = null) THEN null ELSE cast(max_date#94275232 as date) END AS max_date#94275280]
Input [12]: [fractile#94275221, cap#94275222, size#94275223, value#94275224, growth#94275225, leverage#94275226, volatility#94275227, momentum#94275228, yield#94275229, ##94275230, min_date#94275231, max_date#94275232]
(7) Filter [codegen id : 2]
Input [12]: [##94275278, cap#94275270, fractile#94275269, growth#94275273, leverage#94275274, max_date#94275280, min_date#94275279, momentum#94275276, size#94275271, value#94275272, volatility#94275275, yield#94275277]
Condition : ((isnotnull(fractile#94275269) AND NOT (fractile#94275269 = -1)) AND isnotnull(cap#94275270))
(8) Project [codegen id : 2]
Output [12]: [fractile#94275269, cap#94275270 AS cap_description#94275293, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
Input [12]: [##94275278, cap#94275270, fractile#94275269, growth#94275273, leverage#94275274, max_date#94275280, min_date#94275279, momentum#94275276, size#94275271, value#94275272, volatility#94275275, yield#94275277]
(9) InMemoryTableScan
Output [2]: [cap#94160394, description#94160396]
Arguments: [cap#94160394, description#94160396], [isnotnull(cap#94160394), (cap#94160394 = 0), isnotnull(description#94160396)]
(10) InMemoryRelation
Arguments: [cap#94160394, sort#94160395, description#94160396, universe#94160397], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@208e3fd9,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Project [CASE WHEN ((cap#94160377 = NA) OR (cap#94160377 = null)) THEN null ELSE cast(cap#94160377 as int) END AS cap#94160394, CASE WHEN (sort#94160378 = null) THEN null ELSE sort#94160378 END AS sort#94160395, CASE WHEN (description#94160379 = null) THEN null ELSE description#94160379 END AS description#94160396, CASE WHEN ((universe#94160380 = NA) OR (universe#94160380 = null)) THEN null ELSE cast(universe#94160380 as int) END AS universe#94160397]
+- FileScan csv [cap#94160377,sort#94160378,description#94160379,universe#94160380] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/srv/plusamp/data/default/ea-market/curate/curate_cap.csv], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<cap:string,sort:string,description:string,universe:string>
,None)
(11) Scan csv
Output [4]: [cap#94160377, sort#94160378, description#94160379, universe#94160380]
Batched: false
Location: InMemoryFileIndex [file:/srv/plusamp/data/default/ea-market/curate/curate_cap.csv]
ReadSchema: struct<cap:string,sort:string,description:string,universe:string>
(12) Project [codegen id : 1]
Output [4]: [CASE WHEN ((cap#94160377 = NA) OR (cap#94160377 = null)) THEN null ELSE cast(cap#94160377 as int) END AS cap#94160394, CASE WHEN (sort#94160378 = null) THEN null ELSE sort#94160378 END AS sort#94160395, CASE WHEN (description#94160379 = null) THEN null ELSE description#94160379 END AS description#94160396, CASE WHEN ((universe#94160380 = NA) OR (universe#94160380 = null)) THEN null ELSE cast(universe#94160380 as int) END AS universe#94160397]
Input [4]: [cap#94160377, sort#94160378, description#94160379, universe#94160380]
(13) Filter [codegen id : 1]
Input [2]: [cap#94160394, description#94160396]
Condition : ((isnotnull(cap#94160394) AND (cap#94160394 = 0)) AND isnotnull(description#94160396))
(14) Project [codegen id : 1]
Output [1]: [description#94160396]
Input [2]: [cap#94160394, description#94160396]
(15) BroadcastExchange
Input [1]: [description#94160396]
Arguments: HashedRelationBroadcastMode(List(input[0, string, true]),false), [id=#7527050]
(16) BroadcastHashJoin [codegen id : 2]
Left keys [1]: [cap_description#94275293]
Right keys [1]: [description#94160396]
Join condition: None
(17) Project [codegen id : 2]
Output [11]: [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
Input [13]: [fractile#94275269, cap_description#94275293, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280, description#94160396]
(18) Exchange
Input [11]: [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
Arguments: rangepartitioning(fractile#94275269 ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, [id=#7527055]
(19) Sort [codegen id : 3]
Input [11]: [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
Arguments: [fractile#94275269 ASC NULLS FIRST], true, 0
(20) CollectLimit
Input [11]: [fractile#94275269, size#94275271, value#94275272, growth#94275273, leverage#94275274, volatility#94275275, momentum#94275276, yield#94275277, ##94275278, min_date#94275279, max_date#94275280]
Arguments: 1000000