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.
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Presto
2
2
  module Metrics
3
- VERSION = '0.3.4'
3
+ VERSION = '0.3.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presto-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: