presto-metrics 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/presto/metrics/query.rb +1 -0
- data/lib/presto/metrics/version.rb +1 -1
- metadata +1 -1
data/lib/presto/metrics/query.rb
CHANGED
|
@@ -107,6 +107,7 @@ module Presto
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
def count_total_processed_rows(stage)
|
|
110
|
+
return 0 unless stage
|
|
110
111
|
rows = (stage.tasks || []).map{|t| t.stats.raw_input_positions }.inject(0, :+)
|
|
111
112
|
rows + (stage.sub_stages || []).map{|ss| count_total_processed_rows(ss) }.inject(0, :+)
|
|
112
113
|
end
|