Project [CASE WHEN ((fractile#94346372 = NA) OR (fractile#94346372 = null)) THEN null ELSE cast(fractile#94346372 as int) END AS fractile#94346420, CASE WHEN (cap#94346373 = null) THEN null ELSE cap#94346373 END AS cap#94346421, CASE WHEN ((size#94346374 = NA) OR (size#94346374 = null)) THEN null ELSE cast(size#94346374 as float) END AS size#94346422, CASE WHEN ((value#94346375 = NA) OR (value#94346375 = null)) THEN null ELSE cast(value#94346375 as float) END AS value#94346423, CASE WHEN ((growth#94346376 = NA) OR (growth#94346376 = null)) THEN null ELSE cast(growth#94346376 as float) END AS growth#94346424, CASE WHEN ((leverage#94346377 = NA) OR (leverage#94346377 = null)) THEN null ELSE cast(leverage#94346377 as float) END AS leverage#94346425, CASE WHEN ((volatility#94346378 = NA) OR (volatility#94346378 = null)) THEN null ELSE cast(volatility#94346378 as float) END AS volatility#94346426, CASE WHEN ((momentum#94346379 = NA) OR (momentum#94346379 = null)) THEN null ELSE cast(momentum#94346379 as float) END AS momentum#94346427, CASE WHEN ((yield#94346380 = NA) OR (yield#94346380 = null)) THEN null ELSE cast(yield#94346380 as float) END AS yield#94346428, CASE WHEN ((##94346381 = NA) OR (##94346381 = null)) THEN null ELSE cast(##94346381 as float) END AS ##94346429, CASE WHEN (min_date#94346382 = null) THEN null ELSE cast(min_date#94346382 as date) END AS min_date#94346430, CASE WHEN (max_date#94346383 = null) THEN null ELSE cast(max_date#94346383 as date) END AS max_date#94346431]
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#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
Arguments: [fractile#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
(2) InMemoryRelation
Arguments: [fractile#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@208e3fd9,StorageLevel(disk, memory, deserialized, 1 replicas),*(3) Sort [fractile#94346420 ASC NULLS FIRST], true, 0
+- Exchange rangepartitioning(fractile#94346420 ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, [id=#7532792]
+- *(2) Project [fractile#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
+- *(2) BroadcastHashJoin [cap_description#94346444], [description#94160396], Inner, BuildRight, false
:- *(2) Project [fractile#94346420, cap#94346421 AS cap_description#94346444, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
: +- *(2) Filter ((isnotnull(fractile#94346420) AND NOT (fractile#94346420 = -1)) AND isnotnull(cap#94346421))
: +- InMemoryTableScan [##94346429, cap#94346421, fractile#94346420, growth#94346424, leverage#94346425, max_date#94346431, min_date#94346430, momentum#94346427, size#94346422, value#94346423, volatility#94346426, yield#94346428], [isnotnull(fractile#94346420), NOT (fractile#94346420 = -1), isnotnull(cap#94346421)]
: +- InMemoryRelation [fractile#94346420, cap#94346421, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431], StorageLevel(disk, memory, deserialized, 1 replicas)
: +- *(1) Project [CASE WHEN ((fractile#94346372 = NA) OR (fractile#94346372 = null)) THEN null ELSE cast(fractile#94346372 as int) END AS fractile#94346420, CASE WHEN (cap#94346373 = null) THEN null ELSE cap#94346373 END AS cap#94346421, CASE WHEN ((size#94346374 = NA) OR (size#94346374 = null)) THEN null ELSE cast(size#94346374 as float) END AS size#94346422, CASE WHEN ((value#94346375 = NA) OR (value#94346375 = null)) THEN null ELSE cast(value#94346375 as float) END AS value#94346423, CASE WHEN ((growth#94346376 = NA) OR (growth#94346376 = null)) THEN null ELSE cast(growth#94346376 as float) END AS growth#94346424, CASE WHEN ((leverage#94346377 = NA) OR (leverage#94346377 = null)) THEN null ELSE cast(leverage#94346377 as float) END AS leverage#94346425, CASE WHEN ((volatility#94346378 = NA) OR (volatility#94346378 = null)) THEN null ELSE cast(volatility#94346378 as float) END AS volatility#94346426, CASE WHEN ((momentum#94346379 = NA) OR (momentum#94346379 = null)) THEN null ELSE cast(momentum#94346379 as float) END AS momentum#94346427, CASE WHEN ((yield#94346380 = NA) OR (yield#94346380 = null)) THEN null ELSE cast(yield#94346380 as float) END AS yield#94346428, CASE WHEN ((##94346381 = NA) OR (##94346381 = null)) THEN null ELSE cast(##94346381 as float) END AS ##94346429, CASE WHEN (min_date#94346382 = null) THEN null ELSE cast(min_date#94346382 as date) END AS min_date#94346430, CASE WHEN (max_date#94346383 = null) THEN null ELSE cast(max_date#94346383 as date) END AS max_date#94346431]
: +- FileScan csv [fractile#94346372,cap#94346373,size#94346374,value#94346375,growth#94346376,leverage#94346377,volatility#94346378,momentum#94346379,yield#94346380,##94346381,min_date#94346382,max_date#94346383] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/srv/plusamp/data/default/ea-market/output/estimize_signal_histor..., 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=#7532787]
+- *(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#94346420 ASC NULLS FIRST]
(3) InMemoryTableScan
Output [12]: [##94346429, cap#94346421, fractile#94346420, growth#94346424, leverage#94346425, max_date#94346431, min_date#94346430, momentum#94346427, size#94346422, value#94346423, volatility#94346426, yield#94346428]
Arguments: [##94346429, cap#94346421, fractile#94346420, growth#94346424, leverage#94346425, max_date#94346431, min_date#94346430, momentum#94346427, size#94346422, value#94346423, volatility#94346426, yield#94346428], [isnotnull(fractile#94346420), NOT (fractile#94346420 = -1), isnotnull(cap#94346421)]
(4) InMemoryRelation
Arguments: [fractile#94346420, cap#94346421, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431], CachedRDDBuilder(org.apache.spark.sql.execution.columnar.DefaultCachedBatchSerializer@208e3fd9,StorageLevel(disk, memory, deserialized, 1 replicas),*(1) Project [CASE WHEN ((fractile#94346372 = NA) OR (fractile#94346372 = null)) THEN null ELSE cast(fractile#94346372 as int) END AS fractile#94346420, CASE WHEN (cap#94346373 = null) THEN null ELSE cap#94346373 END AS cap#94346421, CASE WHEN ((size#94346374 = NA) OR (size#94346374 = null)) THEN null ELSE cast(size#94346374 as float) END AS size#94346422, CASE WHEN ((value#94346375 = NA) OR (value#94346375 = null)) THEN null ELSE cast(value#94346375 as float) END AS value#94346423, CASE WHEN ((growth#94346376 = NA) OR (growth#94346376 = null)) THEN null ELSE cast(growth#94346376 as float) END AS growth#94346424, CASE WHEN ((leverage#94346377 = NA) OR (leverage#94346377 = null)) THEN null ELSE cast(leverage#94346377 as float) END AS leverage#94346425, CASE WHEN ((volatility#94346378 = NA) OR (volatility#94346378 = null)) THEN null ELSE cast(volatility#94346378 as float) END AS volatility#94346426, CASE WHEN ((momentum#94346379 = NA) OR (momentum#94346379 = null)) THEN null ELSE cast(momentum#94346379 as float) END AS momentum#94346427, CASE WHEN ((yield#94346380 = NA) OR (yield#94346380 = null)) THEN null ELSE cast(yield#94346380 as float) END AS yield#94346428, CASE WHEN ((##94346381 = NA) OR (##94346381 = null)) THEN null ELSE cast(##94346381 as float) END AS ##94346429, CASE WHEN (min_date#94346382 = null) THEN null ELSE cast(min_date#94346382 as date) END AS min_date#94346430, CASE WHEN (max_date#94346383 = null) THEN null ELSE cast(max_date#94346383 as date) END AS max_date#94346431]
+- FileScan csv [fractile#94346372,cap#94346373,size#94346374,value#94346375,growth#94346376,leverage#94346377,volatility#94346378,momentum#94346379,yield#94346380,##94346381,min_date#94346382,max_date#94346383] Batched: false, DataFilters: [], Format: CSV, Location: InMemoryFileIndex(1 paths)[file:/srv/plusamp/data/default/ea-market/output/estimize_signal_histor..., PartitionFilters: [], PushedFilters: [], ReadSchema: struct<fractile:string,cap:string,size:string,value:string,growth:string,leverage:string,volatili...
,None)
(5) Scan csv
Output [12]: [fractile#94346372, cap#94346373, size#94346374, value#94346375, growth#94346376, leverage#94346377, volatility#94346378, momentum#94346379, yield#94346380, ##94346381, min_date#94346382, max_date#94346383]
Batched: false
Location: InMemoryFileIndex [file:/srv/plusamp/data/default/ea-market/output/estimize_signal_history/estimizesignal_preearnings/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#94346372 = NA) OR (fractile#94346372 = null)) THEN null ELSE cast(fractile#94346372 as int) END AS fractile#94346420, CASE WHEN (cap#94346373 = null) THEN null ELSE cap#94346373 END AS cap#94346421, CASE WHEN ((size#94346374 = NA) OR (size#94346374 = null)) THEN null ELSE cast(size#94346374 as float) END AS size#94346422, CASE WHEN ((value#94346375 = NA) OR (value#94346375 = null)) THEN null ELSE cast(value#94346375 as float) END AS value#94346423, CASE WHEN ((growth#94346376 = NA) OR (growth#94346376 = null)) THEN null ELSE cast(growth#94346376 as float) END AS growth#94346424, CASE WHEN ((leverage#94346377 = NA) OR (leverage#94346377 = null)) THEN null ELSE cast(leverage#94346377 as float) END AS leverage#94346425, CASE WHEN ((volatility#94346378 = NA) OR (volatility#94346378 = null)) THEN null ELSE cast(volatility#94346378 as float) END AS volatility#94346426, CASE WHEN ((momentum#94346379 = NA) OR (momentum#94346379 = null)) THEN null ELSE cast(momentum#94346379 as float) END AS momentum#94346427, CASE WHEN ((yield#94346380 = NA) OR (yield#94346380 = null)) THEN null ELSE cast(yield#94346380 as float) END AS yield#94346428, CASE WHEN ((##94346381 = NA) OR (##94346381 = null)) THEN null ELSE cast(##94346381 as float) END AS ##94346429, CASE WHEN (min_date#94346382 = null) THEN null ELSE cast(min_date#94346382 as date) END AS min_date#94346430, CASE WHEN (max_date#94346383 = null) THEN null ELSE cast(max_date#94346383 as date) END AS max_date#94346431]
Input [12]: [fractile#94346372, cap#94346373, size#94346374, value#94346375, growth#94346376, leverage#94346377, volatility#94346378, momentum#94346379, yield#94346380, ##94346381, min_date#94346382, max_date#94346383]
(7) Filter [codegen id : 2]
Input [12]: [##94346429, cap#94346421, fractile#94346420, growth#94346424, leverage#94346425, max_date#94346431, min_date#94346430, momentum#94346427, size#94346422, value#94346423, volatility#94346426, yield#94346428]
Condition : ((isnotnull(fractile#94346420) AND NOT (fractile#94346420 = -1)) AND isnotnull(cap#94346421))
(8) Project [codegen id : 2]
Output [12]: [fractile#94346420, cap#94346421 AS cap_description#94346444, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
Input [12]: [##94346429, cap#94346421, fractile#94346420, growth#94346424, leverage#94346425, max_date#94346431, min_date#94346430, momentum#94346427, size#94346422, value#94346423, volatility#94346426, yield#94346428]
(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=#7532787]
(16) BroadcastHashJoin [codegen id : 2]
Left keys [1]: [cap_description#94346444]
Right keys [1]: [description#94160396]
Join condition: None
(17) Project [codegen id : 2]
Output [11]: [fractile#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
Input [13]: [fractile#94346420, cap_description#94346444, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431, description#94160396]
(18) Exchange
Input [11]: [fractile#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
Arguments: rangepartitioning(fractile#94346420 ASC NULLS FIRST, 200), ENSURE_REQUIREMENTS, [id=#7532792]
(19) Sort [codegen id : 3]
Input [11]: [fractile#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
Arguments: [fractile#94346420 ASC NULLS FIRST], true, 0
(20) CollectLimit
Input [11]: [fractile#94346420, size#94346422, value#94346423, growth#94346424, leverage#94346425, volatility#94346426, momentum#94346427, yield#94346428, ##94346429, min_date#94346430, max_date#94346431]
Arguments: 1000000