presto-metrics 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- 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
|