presto-metrics 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/presto/metrics/query.rb +2 -2
- data/lib/presto/metrics/version.rb +1 -1
- metadata +1 -1
data/lib/presto/metrics/query.rb
CHANGED
@@ -107,8 +107,8 @@ module Presto
|
|
107
107
|
|
108
108
|
|
109
109
|
def count_total_processed_rows(stage)
|
110
|
-
rows = stage.tasks.map{|t| t.stats.raw_input_positions }.inject(0, :+)
|
111
|
-
rows + stage.sub_stages.map{|ss| count_total_processed_rows(ss) }.inject(0, :+)
|
110
|
+
rows = (stage.tasks || []).map{|t| t.stats.raw_input_positions }.inject(0, :+)
|
111
|
+
rows + (stage.sub_stages || []).map{|ss| count_total_processed_rows(ss) }.inject(0, :+)
|
112
112
|
end
|
113
113
|
|
114
114
|
def processed_rows(query_id)
|