active_reporter 0.5.10 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22aa53dc93b2b59ad6d4c7bafa231c2010df9593703b5d098dc695080d2013be
4
- data.tar.gz: ce2f222ec13b3618e9e2993990d471806f5a8337f2dee4edd463e302c07deb6c
3
+ metadata.gz: 760b641c323ac15a10767901f91776f8060353366c74e00333a29f76c43a622f
4
+ data.tar.gz: 12e2c7902056ec37e07a72c11d16261390c2aa8e56e1b7395d000d24b2617de8
5
5
  SHA512:
6
- metadata.gz: 37c23e44eaee1213950e478c56ba2e32d1794c48404e9555dd4160e94d1b5d2632b425d1185267a5ec201276446a0b16a321dc9d6ca65f4c0db6a58d8ebfe828
7
- data.tar.gz: 17b09fa7abe69324fad835ca9b9693be9900e20838974eec1409ab3a22577a3835f1e401a62ad95fa8c3e8264aeee98622e77f39110a91d7465be784ca06649d
6
+ metadata.gz: 94f9875a81ab72172e200920213ca1de4f307f6879dc7163101d7399c5ea0cb3ba80b4b724c4c3b62b0d32daee75fe11a43a68a72d00ed1aa787a43fb3c8e6b4
7
+ data.tar.gz: 80d2ee5dc68fe12fc1239bab3305aa4c15ddccbb57daf74183e9e95bb05db7754b3045f927cf5eb2d673c113df1f3b6cd5d5c4b3412dd44cc9404ec891575e64
@@ -106,7 +106,7 @@ module ActiveReporter
106
106
  end
107
107
 
108
108
  def invalid_param!(param_key, message)
109
- raise InvalidParamsError, "Invalid value for params[:dimensions] [:#{name}][:#{param_key}]: #{message}"
109
+ raise InvalidParamsError, "Invalid value for params[:dimensions][:#{name}][:#{param_key}]\n :#{param_key} #{message}"
110
110
  end
111
111
 
112
112
  def table_name
@@ -100,7 +100,7 @@ module ActiveReporter
100
100
  bin_max = filter_values_for(:max).present? ? (max - bin_width) : max
101
101
 
102
102
  bin_count = (bin_max - bin_start)/(bin_width)
103
- invalid_param!(:bin_width, "is too small for the domain; would generate #{bin_count} bins") if bin_count > max_bins
103
+ invalid_param!(:bin_width, "is too small for the domain; would generate #{bin_count.to_i} bins") if bin_count > max_bins
104
104
 
105
105
  bin_edge = bin_start
106
106
  bins = []
@@ -6,18 +6,24 @@ module ActiveReporter
6
6
  def group_values
7
7
  return filter_values if filtering?
8
8
 
9
- # i = report.groupers.key(self)
10
- all_values & report.raw_data.keys.map { |x| x[0] }.uniq
9
+ all_values & report_values
11
10
  end
12
11
 
13
12
  def all_values
14
- enum_values.keys.unshift(nil)
13
+ enum_values.keys.tap { |values| values.unshift(nil) unless values.include?(nil) }.uniq
15
14
  end
16
15
 
17
16
  private
18
17
 
19
18
  def enum_values
20
- model.defined_enums[attribute.to_s]
19
+ model.defined_enums[attribute.to_s] || {}
20
+ end
21
+
22
+ def report_values
23
+ return [] if report.raw_data.nil?
24
+
25
+ i = report.groupers.index(self)
26
+ report.raw_data.keys.map { |x| x[i] }.uniq
21
27
  end
22
28
 
23
29
  def sanitize_sql_value(value)
@@ -11,7 +11,7 @@ module ActiveReporter
11
11
  def validate_params!
12
12
  super
13
13
 
14
- invalid_param!(:bin_width, "must be a hash of one of #{STEPS} to an integer") if params.key?(:bin_width) && !valid_duration?(params[:bin_width])
14
+ invalid_param!(:bin_width, "must be a valid width value or a hash where each hash keys is a valid value and each hash value\n is interger representing the count of the key width\n valid :bin_width values include #{STEPS.to_sentence}.") if params.key?(:bin_width) && !valid_duration?(params[:bin_width])
15
15
  end
16
16
 
17
17
  def bin_width
@@ -42,18 +42,22 @@ module ActiveReporter
42
42
  case params[:bin_width]
43
43
  when Hash
44
44
  params[:bin_width].map { |step, n| n.send(step) }.sum
45
- when String
46
- n, step = params[:bin_width].split.map(&:strip)
45
+ when String, Symbol
46
+ n, step = params[:bin_width].to_s.split.map(&:strip)
47
+ if step.nil?
48
+ step = n
49
+ n = 1
50
+ end
47
51
  n.to_i.send(step)
48
52
  end
49
53
  end
50
54
 
51
- def valid_duration?(d)
52
- case d
55
+ def valid_duration?(duration)
56
+ case duration
53
57
  when Hash
54
- d.all? { |step, n| step.to_sym.in?(STEPS) && n.is_a?(Numeric) }
55
- when String
56
- d =~ DURATION_PATTERN
58
+ duration.all? { |step, n| step.to_s.pluralize(:_gem_active_reporter).to_sym.in?(STEPS) && n.is_a?(Numeric) }
59
+ when String, Symbol
60
+ duration.to_s.pluralize(:_gem_active_reporter).to_sym.in?(STEPS) || duration =~ DURATION_PATTERN
57
61
  else
58
62
  false
59
63
  end
@@ -197,7 +197,7 @@ module ActiveReporter
197
197
  def total
198
198
  results = @total_data || total_report.raw_data
199
199
 
200
- results.merge!(results.collect do |row, value|
200
+ results.deep_merge!(results.collect do |row, value|
201
201
  calculators.collect do |name, calculator|
202
202
  row_data = hash_raw_row(row, value, ['totals'])
203
203
  calc_report = parent_report.total_report
@@ -41,7 +41,7 @@ module ActiveReporter
41
41
  if calculator.aggregator.nil?
42
42
  add_invalid_param_error(:calculator, ":#{calculator.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
43
43
  elsif aggregators.exclude?(calculator.aggregator)
44
- add_invalid_param_error(:calculator, ":#{calculator.name} defines an valid aggregator :#{calculator.aggregator} (should be in #{self.class.aggregators.keys})")
44
+ add_invalid_param_error(:calculator, ":#{calculator.name} defines an invalid aggregator :#{calculator.aggregator} (should be in #{self.class.aggregators.keys})")
45
45
  end
46
46
  end
47
47
  end
@@ -55,7 +55,11 @@ module ActiveReporter
55
55
  if tracker.aggregator.nil?
56
56
  add_invalid_param_error(:tracker, ":#{tracker.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
57
57
  elsif aggregators.exclude?(tracker.aggregator)
58
- add_invalid_param_error(:tracker, ":#{tracker.name} defines an valid aggregator :#{tracker.aggregator} (should be in #{self.class.aggregators.keys})")
58
+ add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid aggregator :#{tracker.aggregator} (should be in #{self.class.aggregators.keys})")
59
+ end
60
+
61
+ if tracker.prior_aggregator.present? && aggregators.exclude?(tracker.prior_aggregator)
62
+ add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid prior aggregator :#{tracker.prior_aggregator} (should be in #{self.class.aggregators.keys})")
59
63
  end
60
64
  end
61
65
  end
@@ -4,7 +4,7 @@ module ActiveReporter
4
4
  def table
5
5
  report.hashed_data.collect { |row| row.map { |k,v| [k, (v.respond_to?(:min) ? v.min : v).to_s] }.to_h }.collect do |row|
6
6
  report.grouper_names.reverse.inject(row.slice(*report.all_aggregators.keys)) { |nested_row_data, group| { row[group] => nested_row_data } }
7
- end.reduce({}, :merge)
7
+ end.reduce({}, :deep_merge)
8
8
  end
9
9
  end
10
10
  end
@@ -1,2 +1,3 @@
1
1
  require 'active_reporter/tracker/base'
2
2
  require 'active_reporter/tracker/delta'
3
+ require 'active_reporter/tracker/value'
@@ -0,0 +1,9 @@
1
+ module ActiveReporter
2
+ module Tracker
3
+ class Value < ActiveReporter::Tracker::Base
4
+ def track(_, prior_row)
5
+ prior_row[aggregator] if prior_row.nil?
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module ActiveReporter
2
- VERSION = "0.5.10"
2
+ VERSION = "0.6.1"
3
3
  end
@@ -1,94 +1,47 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe ActiveReporter::Dimension::Enum do
4
- def new_dimension(dimension_params = {}, report_params = {}, opts = { model: :post })
5
- report_params[:dimensions] = dimension_params
6
- ActiveReporter::Dimension::Enum.new(
7
- :status,
8
- OpenStruct.new(params: report_params, groupers: { status: {}, category: {} }, raw_data: {
9
- ['published', 'post_count'] => 5, ['published', 'post_total'] => 500.00, ['published', 'post_average'] => 100.00,
10
- ['archived', 'post_count'] => 7, ['archived', 'post_total'] => 530.25, ['archived', 'post_average'] => 75.75,
11
- }),
12
- opts
13
- )
14
- end
15
-
16
- def status_dimension(report)
17
- described_class.new(:status, report, model: :posts, attribute: :status)
18
- end
4
+ let(:report_model) { :post }
5
+ let(:filter_values) { nil }
6
+ let(:status_dimension_options) { { only: filter_values }.compact }
7
+ let(:report) { OpenStruct.new(params: { dimensions: { status: status_dimension_options } }, groupers: [:status, :category], raw_data: raw_data) }
8
+
9
+ let(:raw_data) { {
10
+ ['published', 'post_count'] => 5, ['published', 'post_total'] => 500.00, ['published', 'post_average'] => 100.00,
11
+ ['archived', 'post_count'] => 7, ['archived', 'post_total'] => 530.25, ['archived', 'post_average'] => 75.75,
12
+ } }
13
+
14
+ let(:enum_values) { { 'draft' => 0, 'unpublished' => 1, 'published' => 2, 'archived' => 3 } }
15
+ let(:group_values) { ['published', 'archived'] }
16
+ let(:all_values) { enum_values.keys.unshift(nil) }
17
+
18
+ let(:status_dimension) do
19
+ dimension = ActiveReporter::Dimension::Enum.new(:status, report, { model: report_model, only: filter_values })
20
+ allow(dimension).to receive(:enum_values).and_return(enum_values)
21
+ report.groupers[report.groupers.index(:status)] = dimension if report.groupers.include?(:status)
19
22
 
20
- def author_dimension(report)
21
- described_class.new(:author, report, model: :authors, attribute: :name, relation: ->(r) { r.joins(
22
- "LEFT OUTER JOIN authors ON authors.id = posts.author_id") })
23
+ dimension
23
24
  end
24
25
 
25
26
  describe '#group_values' do
26
- # it 'echoes filter_values if filtering' do
27
- # dimension = status_dimension(OpenStruct.new(params: {
28
- # groupers: [:status]
29
- # }))
30
- # expect(dimension.group_values).to eq [nil, 'draft', 'unpublished', 'published', 'archived']
31
- # end
27
+ context 'when filtering' do
28
+ let(:filter_values) { ['unpublished', 'published', 'archived'] }
32
29
 
30
+ it 'returns filter_values' do
31
+ expect(status_dimension).to be_filtering
32
+ expect(status_dimension.group_values).to eq filter_values
33
+ end
34
+ end
33
35
 
34
- it 'determines #filtering?' do
35
- dimension = new_dimension({ status: {}, category: {} }, { groupers: [:status] })
36
- expect(dimension).not_to be_filtering
37
- expect(dimension.group_values).to match %w(published archived)
36
+ it 'returns group enum values' do
37
+ expect(status_dimension).not_to be_filtering
38
+ expect(status_dimension.group_values).to match group_values
38
39
  end
39
40
  end
40
41
 
41
- # describe '#all_values' do
42
- # it 'returns model enum values' do
43
- # dimension = author_dimension(OpenStruct.new(params: {
44
- # dimensions: { author: { only: [nil, 'draft', 'unpublished', 'published', 'archived'] } }
45
- # }))
46
- # expect(dimension.all_values).to eq described_class.
47
- # end
48
- # end
49
-
50
- # describe '#filter' do
51
- # it 'filters to rows matching at least one value' do
52
- # p1 = create(:post, author: 'Alice')
53
- # p2 = create(:post, author: 'Bob')
54
- # p3 = create(:post, author: nil)
55
-
56
- # def filter_by(author_values)
57
- # report = OpenStruct.new(
58
- # table_name: 'posts',
59
- # params: { dimensions: { author: { only: author_values } } }
60
- # )
61
- # dimension = author_dimension(report)
62
- # dimension.filter(dimension.relate(Post))
63
- # end
64
-
65
- # expect(filter_by(['Alice'])).to eq [p1]
66
- # expect(filter_by([nil])).to eq [p3]
67
- # expect(filter_by(['Alice', nil])).to eq [p1, p3]
68
- # expect(filter_by(['Alice', 'Bob'])).to eq [p1, p2]
69
- # expect(filter_by([])).to eq []
70
- # end
71
- # end
72
-
73
- # describe '#group' do
74
- # it 'groups the relation by the exact value of the SQL expression' do
75
- # p1 = create(:post, author: 'Alice')
76
- # p2 = create(:post, author: 'Alice')
77
- # p3 = create(:post, author: nil)
78
- # p4 = create(:post, author: 'Bob')
79
- # p5 = create(:post, author: 'Bob')
80
- # p6 = create(:post, author: 'Bob')
81
-
82
- # report = OpenStruct.new(table_name: 'posts', params: {})
83
- # dimension = author_dimension(report)
84
-
85
- # results = dimension.group(dimension.relate(Post)).select("COUNT(*) AS count").map do |r|
86
- # r.attributes.values_at(dimension.send(:sql_value_name), 'count')
87
- # end
88
-
89
- # expect(results).to eq [[nil, 1], ['Alice', 2], ['Bob', 3]]
90
- # end
91
- # end
92
-
93
-
42
+ describe '#all_values' do
43
+ it 'returns model enum values' do
44
+ expect(status_dimension.all_values).to match all_values
45
+ end
46
+ end
94
47
  end
@@ -42203,3 +42203,56154 @@
42203
42203
  END
42204
42204
  ) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
42205
42205
   (0.4ms) ROLLBACK
42206
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
42207
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
42208
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
42209
+  (0.3ms) BEGIN
42210
+  (0.3ms) SAVEPOINT active_record_1
42211
+ Author Create (6.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.655371"], ["updated_at", "2020-10-06 23:33:24.655371"], ["name", "James Joyce"]]
42212
+  (0.3ms) RELEASE SAVEPOINT active_record_1
42213
+ Author Load (0.5ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42214
+  (0.2ms) SAVEPOINT active_record_1
42215
+ Post Create (1.0ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.700028"], ["updated_at", "2020-10-06 23:33:24.700028"], ["author_id", 988], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
42216
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42217
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42218
+  (0.2ms) SAVEPOINT active_record_1
42219
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.704910"], ["updated_at", "2020-10-06 23:33:24.704910"], ["author_id", 988], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42220
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42221
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42222
+  (0.2ms) SAVEPOINT active_record_1
42223
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.709639"], ["updated_at", "2020-10-06 23:33:24.709639"], ["author_id", 988], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
42224
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42225
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42226
+  (0.2ms) SAVEPOINT active_record_1
42227
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.713923"], ["updated_at", "2020-10-06 23:33:24.713923"], ["author_id", 988], ["status", 2], ["likes", 3]]
42228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42229
+  (0.2ms) SAVEPOINT active_record_1
42230
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.718305"], ["updated_at", "2020-10-06 23:33:24.718305"], ["name", "Virginia Woolf"]]
42231
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42232
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42233
+  (0.2ms) SAVEPOINT active_record_1
42234
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.722093"], ["updated_at", "2020-10-06 23:33:24.722093"], ["author_id", 989], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42236
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42237
+  (0.2ms) SAVEPOINT active_record_1
42238
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.726614"], ["updated_at", "2020-10-06 23:33:24.726614"], ["author_id", 989], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
42239
+  (0.3ms) RELEASE SAVEPOINT active_record_1
42240
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42241
+  (0.2ms) SAVEPOINT active_record_1
42242
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.731812"], ["updated_at", "2020-10-06 23:33:24.731812"], ["author_id", 989], ["status", 2], ["likes", 3]]
42243
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42244
+  (0.3ms) SAVEPOINT active_record_1
42245
+ Post Create (0.9ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.735282"], ["updated_at", "2020-10-06 23:33:24.735282"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42246
+  (0.3ms) RELEASE SAVEPOINT active_record_1
42247
+  (0.3ms) SAVEPOINT active_record_1
42248
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.739486"], ["updated_at", "2020-10-06 23:33:24.739486"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
42249
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42250
+ Post Load (2.2ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
42251
+  (0.8ms) SELECT MIN(posts.published_at) FROM "posts"
42252
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
42253
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42254
+ Post Load (2.0ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
42255
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
42256
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
42257
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text
42258
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
42259
+ CASE
42260
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
42261
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
42262
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
42263
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
42264
+ END
42265
+ ) GROUP BY _active_reporter_dimension_published_at
42266
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
42267
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
42268
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
42269
+ Post Load (2.3ms) SELECT _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
42270
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
42271
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
42272
+ SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
42273
+ ) AS _active_reporter_dimension_likes_bin_table ON (
42274
+ CASE
42275
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
42276
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
42277
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
42278
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
42279
+ END
42280
+ ) GROUP BY _active_reporter_dimension_likes
42281
+  (0.3ms) ROLLBACK
42282
+  (0.1ms) BEGIN
42283
+  (0.1ms) SAVEPOINT active_record_1
42284
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.800842"], ["updated_at", "2020-10-06 23:33:24.800842"], ["name", "James Joyce"]]
42285
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42286
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42287
+  (0.1ms) SAVEPOINT active_record_1
42288
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.803740"], ["updated_at", "2020-10-06 23:33:24.803740"], ["author_id", 990], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
42289
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42290
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42291
+  (0.1ms) SAVEPOINT active_record_1
42292
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.806342"], ["updated_at", "2020-10-06 23:33:24.806342"], ["author_id", 990], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42293
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42294
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42295
+  (0.2ms) SAVEPOINT active_record_1
42296
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.809736"], ["updated_at", "2020-10-06 23:33:24.809736"], ["author_id", 990], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
42297
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42298
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42299
+  (0.2ms) SAVEPOINT active_record_1
42300
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.813709"], ["updated_at", "2020-10-06 23:33:24.813709"], ["author_id", 990], ["status", 2], ["likes", 3]]
42301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42302
+  (0.2ms) SAVEPOINT active_record_1
42303
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.816471"], ["updated_at", "2020-10-06 23:33:24.816471"], ["name", "Virginia Woolf"]]
42304
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42305
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42306
+  (0.2ms) SAVEPOINT active_record_1
42307
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.819677"], ["updated_at", "2020-10-06 23:33:24.819677"], ["author_id", 991], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42308
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42309
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42310
+  (0.1ms) SAVEPOINT active_record_1
42311
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.822537"], ["updated_at", "2020-10-06 23:33:24.822537"], ["author_id", 991], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
42312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42313
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42314
+  (0.2ms) SAVEPOINT active_record_1
42315
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.825216"], ["updated_at", "2020-10-06 23:33:24.825216"], ["author_id", 991], ["status", 2], ["likes", 3]]
42316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42317
+  (0.2ms) SAVEPOINT active_record_1
42318
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.827561"], ["updated_at", "2020-10-06 23:33:24.827561"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42319
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42320
+  (0.3ms) SAVEPOINT active_record_1
42321
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.829707"], ["updated_at", "2020-10-06 23:33:24.829707"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
42322
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42323
+  (0.4ms) SELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
42324
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
42325
+ Post Exists? (0.6ms) SELECT 1 AS one FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42326
+ Post Load (1.6ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
42327
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
42328
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
42329
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text
42330
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
42331
+ CASE
42332
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
42333
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
42334
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
42335
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
42336
+ END
42337
+ ) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
42338
+  (0.4ms) ROLLBACK
42339
+  (0.2ms) BEGIN
42340
+  (0.1ms) SAVEPOINT active_record_1
42341
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.853990"], ["updated_at", "2020-10-06 23:33:24.853990"], ["name", "James Joyce"]]
42342
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42343
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42344
+  (0.1ms) SAVEPOINT active_record_1
42345
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.856892"], ["updated_at", "2020-10-06 23:33:24.856892"], ["author_id", 992], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
42346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42347
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42348
+  (0.2ms) SAVEPOINT active_record_1
42349
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.859433"], ["updated_at", "2020-10-06 23:33:24.859433"], ["author_id", 992], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42350
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42351
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42352
+  (0.3ms) SAVEPOINT active_record_1
42353
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.862479"], ["updated_at", "2020-10-06 23:33:24.862479"], ["author_id", 992], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
42354
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42355
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
42356
+  (0.2ms) SAVEPOINT active_record_1
42357
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.865886"], ["updated_at", "2020-10-06 23:33:24.865886"], ["author_id", 992], ["status", 2], ["likes", 3]]
42358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42359
+  (0.2ms) SAVEPOINT active_record_1
42360
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.868210"], ["updated_at", "2020-10-06 23:33:24.868210"], ["name", "Virginia Woolf"]]
42361
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42362
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42363
+  (0.2ms) SAVEPOINT active_record_1
42364
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.870954"], ["updated_at", "2020-10-06 23:33:24.870954"], ["author_id", 993], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42365
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42366
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42367
+  (0.2ms) SAVEPOINT active_record_1
42368
+ Post Create (1.0ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-06 23:33:24.873832"], ["updated_at", "2020-10-06 23:33:24.873832"], ["author_id", 993], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
42369
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42370
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
42371
+  (0.2ms) SAVEPOINT active_record_1
42372
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.877173"], ["updated_at", "2020-10-06 23:33:24.877173"], ["author_id", 993], ["status", 2], ["likes", 3]]
42373
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42374
+  (0.2ms) SAVEPOINT active_record_1
42375
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.879974"], ["updated_at", "2020-10-06 23:33:24.879974"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
42376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42377
+  (0.2ms) SAVEPOINT active_record_1
42378
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.881919"], ["updated_at", "2020-10-06 23:33:24.881919"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
42379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42380
+ Post Load (0.8ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS LAST
42381
+  (0.5ms) SELECT MIN(posts.published_at) FROM "posts"
42382
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
42383
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42384
+ Post Load (1.0ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
42385
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
42386
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
42387
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text
42388
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
42389
+ CASE
42390
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
42391
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
42392
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
42393
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
42394
+ END
42395
+ ) GROUP BY _active_reporter_dimension_published_at
42396
+ Post Load (0.9ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS LAST
42397
+ Post Load (1.0ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS FIRST
42398
+  (0.7ms) SELECT MIN(posts.published_at) FROM "posts"
42399
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
42400
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42401
+ Post Load (1.4ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
42402
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
42403
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
42404
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text
42405
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
42406
+ CASE
42407
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
42408
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
42409
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
42410
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
42411
+ END
42412
+ ) GROUP BY _active_reporter_dimension_published_at
42413
+  (0.6ms) SELECT MIN(posts.published_at) FROM "posts"
42414
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts"
42415
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42416
+ Post Load (1.6ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
42417
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
42418
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
42419
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text
42420
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
42421
+ CASE
42422
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
42423
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
42424
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
42425
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
42426
+ END
42427
+ ) GROUP BY _active_reporter_dimension_published_at
42428
+  (0.4ms) ROLLBACK
42429
+  (0.2ms) BEGIN
42430
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42431
+  (0.2ms) SAVEPOINT active_record_1
42432
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.934877"], ["updated_at", "2020-10-06 23:33:24.934877"], ["name", "Alice"]]
42433
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42434
+  (0.1ms) SAVEPOINT active_record_1
42435
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.936941"], ["updated_at", "2020-10-06 23:33:24.936941"], ["author_id", 994], ["status", 2], ["likes", 3]]
42436
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42437
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42438
+  (0.2ms) SAVEPOINT active_record_1
42439
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.940231"], ["updated_at", "2020-10-06 23:33:24.940231"], ["author_id", 994], ["status", 2], ["likes", 2]]
42440
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42441
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42442
+  (0.2ms) SAVEPOINT active_record_1
42443
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.943576"], ["updated_at", "2020-10-06 23:33:24.943576"], ["name", "Bob"]]
42444
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42445
+  (0.2ms) SAVEPOINT active_record_1
42446
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.945453"], ["updated_at", "2020-10-06 23:33:24.945453"], ["author_id", 995], ["status", 2], ["likes", 4]]
42447
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42448
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42449
+  (0.2ms) SAVEPOINT active_record_1
42450
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.949110"], ["updated_at", "2020-10-06 23:33:24.949110"], ["author_id", 995], ["status", 2], ["likes", 1]]
42451
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42452
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42453
+  (0.2ms) SAVEPOINT active_record_1
42454
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.951886"], ["updated_at", "2020-10-06 23:33:24.951886"], ["author_id", 995], ["status", 2], ["likes", 5]]
42455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42456
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
42457
+  (0.2ms) SAVEPOINT active_record_1
42458
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.954682"], ["updated_at", "2020-10-06 23:33:24.954682"], ["name", "Chester"]]
42459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42460
+  (0.1ms) SAVEPOINT active_record_1
42461
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.956247"], ["updated_at", "2020-10-06 23:33:24.956247"], ["author_id", 996], ["status", 2], ["likes", 10]]
42462
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42463
+ Post Load (0.8ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, ARRAY_AGG(posts.id) AS _report_aggregator_post_ids FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
42464
+  (0.2ms) ROLLBACK
42465
+  (0.2ms) BEGIN
42466
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42467
+  (0.2ms) SAVEPOINT active_record_1
42468
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.964357"], ["updated_at", "2020-10-06 23:33:24.964357"], ["name", "Alice"]]
42469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42470
+  (0.1ms) SAVEPOINT active_record_1
42471
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.966086"], ["updated_at", "2020-10-06 23:33:24.966086"], ["author_id", 997], ["status", 2], ["likes", 3]]
42472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42473
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42474
+  (0.3ms) SAVEPOINT active_record_1
42475
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.968684"], ["updated_at", "2020-10-06 23:33:24.968684"], ["author_id", 997], ["status", 2], ["likes", 2]]
42476
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42477
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42478
+  (0.2ms) SAVEPOINT active_record_1
42479
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.972256"], ["updated_at", "2020-10-06 23:33:24.972256"], ["name", "Bob"]]
42480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42481
+  (0.1ms) SAVEPOINT active_record_1
42482
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.974029"], ["updated_at", "2020-10-06 23:33:24.974029"], ["author_id", 998], ["status", 2], ["likes", 4]]
42483
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42484
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42485
+  (0.3ms) SAVEPOINT active_record_1
42486
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.976696"], ["updated_at", "2020-10-06 23:33:24.976696"], ["author_id", 998], ["status", 2], ["likes", 1]]
42487
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42488
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42489
+  (0.3ms) SAVEPOINT active_record_1
42490
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.980413"], ["updated_at", "2020-10-06 23:33:24.980413"], ["author_id", 998], ["status", 2], ["likes", 5]]
42491
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42492
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
42493
+  (0.2ms) SAVEPOINT active_record_1
42494
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.983617"], ["updated_at", "2020-10-06 23:33:24.983617"], ["name", "Chester"]]
42495
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42496
+  (0.2ms) SAVEPOINT active_record_1
42497
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.985432"], ["updated_at", "2020-10-06 23:33:24.985432"], ["author_id", 999], ["status", 2], ["likes", 10]]
42498
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42499
+ Post Load (0.9ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
42500
+  (0.2ms) ROLLBACK
42501
+  (0.4ms) BEGIN
42502
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42503
+  (0.3ms) SAVEPOINT active_record_1
42504
+ Author Create (0.6ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:24.993568"], ["updated_at", "2020-10-06 23:33:24.993568"], ["name", "Alice"]]
42505
+  (0.3ms) RELEASE SAVEPOINT active_record_1
42506
+  (0.3ms) SAVEPOINT active_record_1
42507
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.996669"], ["updated_at", "2020-10-06 23:33:24.996669"], ["author_id", 1000], ["status", 2], ["likes", 3]]
42508
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42509
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42510
+  (0.2ms) SAVEPOINT active_record_1
42511
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:24.999784"], ["updated_at", "2020-10-06 23:33:24.999784"], ["author_id", 1000], ["status", 2], ["likes", 2]]
42512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42513
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42514
+  (0.2ms) SAVEPOINT active_record_1
42515
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.002699"], ["updated_at", "2020-10-06 23:33:25.002699"], ["name", "Bob"]]
42516
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42517
+  (0.1ms) SAVEPOINT active_record_1
42518
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.004267"], ["updated_at", "2020-10-06 23:33:25.004267"], ["author_id", 1001], ["status", 2], ["likes", 4]]
42519
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42520
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42521
+  (0.1ms) SAVEPOINT active_record_1
42522
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.007082"], ["updated_at", "2020-10-06 23:33:25.007082"], ["author_id", 1001], ["status", 2], ["likes", 1]]
42523
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42524
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42525
+  (0.2ms) SAVEPOINT active_record_1
42526
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.009722"], ["updated_at", "2020-10-06 23:33:25.009722"], ["author_id", 1001], ["status", 2], ["likes", 5]]
42527
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42528
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
42529
+  (0.3ms) SAVEPOINT active_record_1
42530
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.012910"], ["updated_at", "2020-10-06 23:33:25.012910"], ["name", "Chester"]]
42531
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42532
+  (0.2ms) SAVEPOINT active_record_1
42533
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.014719"], ["updated_at", "2020-10-06 23:33:25.014719"], ["author_id", 1002], ["status", 2], ["likes", 10]]
42534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42535
+ Post Load (0.9ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MIN(posts.likes) AS _report_aggregator_min_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
42536
+  (0.2ms) ROLLBACK
42537
+  (0.1ms) BEGIN
42538
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42539
+  (0.2ms) SAVEPOINT active_record_1
42540
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.021445"], ["updated_at", "2020-10-06 23:33:25.021445"], ["name", "Alice"]]
42541
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42542
+  (0.1ms) SAVEPOINT active_record_1
42543
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.023082"], ["updated_at", "2020-10-06 23:33:25.023082"], ["author_id", 1003], ["status", 2], ["likes", 3]]
42544
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42545
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42546
+  (0.2ms) SAVEPOINT active_record_1
42547
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.025965"], ["updated_at", "2020-10-06 23:33:25.025965"], ["author_id", 1003], ["status", 2], ["likes", 2]]
42548
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42549
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42550
+  (0.3ms) SAVEPOINT active_record_1
42551
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.029281"], ["updated_at", "2020-10-06 23:33:25.029281"], ["name", "Bob"]]
42552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42553
+  (0.1ms) SAVEPOINT active_record_1
42554
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.031134"], ["updated_at", "2020-10-06 23:33:25.031134"], ["author_id", 1004], ["status", 2], ["likes", 4]]
42555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42556
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42557
+  (0.1ms) SAVEPOINT active_record_1
42558
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.033843"], ["updated_at", "2020-10-06 23:33:25.033843"], ["author_id", 1004], ["status", 2], ["likes", 1]]
42559
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42560
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42561
+  (0.2ms) SAVEPOINT active_record_1
42562
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.036348"], ["updated_at", "2020-10-06 23:33:25.036348"], ["author_id", 1004], ["status", 2], ["likes", 5]]
42563
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42564
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
42565
+  (0.1ms) SAVEPOINT active_record_1
42566
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.039266"], ["updated_at", "2020-10-06 23:33:25.039266"], ["name", "Chester"]]
42567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42568
+  (0.2ms) SAVEPOINT active_record_1
42569
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.040795"], ["updated_at", "2020-10-06 23:33:25.040795"], ["author_id", 1005], ["status", 2], ["likes", 10]]
42570
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42571
+ Post Load (0.7ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, AVG(posts.likes) AS _report_aggregator_mean_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
42572
+  (0.2ms) ROLLBACK
42573
+  (0.2ms) BEGIN
42574
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42575
+  (0.2ms) SAVEPOINT active_record_1
42576
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.048176"], ["updated_at", "2020-10-06 23:33:25.048176"], ["name", "Alice"]]
42577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42578
+  (0.1ms) SAVEPOINT active_record_1
42579
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.049850"], ["updated_at", "2020-10-06 23:33:25.049850"], ["author_id", 1006], ["status", 2], ["likes", 3]]
42580
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42581
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42582
+  (0.3ms) SAVEPOINT active_record_1
42583
+ Post Create (7.1ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.053117"], ["updated_at", "2020-10-06 23:33:25.053117"], ["author_id", 1006], ["status", 2], ["likes", 2]]
42584
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42585
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42586
+  (0.2ms) SAVEPOINT active_record_1
42587
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.063935"], ["updated_at", "2020-10-06 23:33:25.063935"], ["name", "Bob"]]
42588
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42589
+  (0.2ms) SAVEPOINT active_record_1
42590
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.066160"], ["updated_at", "2020-10-06 23:33:25.066160"], ["author_id", 1007], ["status", 2], ["likes", 4]]
42591
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42592
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42593
+  (0.3ms) SAVEPOINT active_record_1
42594
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.069485"], ["updated_at", "2020-10-06 23:33:25.069485"], ["author_id", 1007], ["status", 2], ["likes", 1]]
42595
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42596
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42597
+  (0.2ms) SAVEPOINT active_record_1
42598
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.072816"], ["updated_at", "2020-10-06 23:33:25.072816"], ["author_id", 1007], ["status", 2], ["likes", 5]]
42599
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42600
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
42601
+  (0.1ms) SAVEPOINT active_record_1
42602
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.075699"], ["updated_at", "2020-10-06 23:33:25.075699"], ["name", "Chester"]]
42603
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42604
+  (0.2ms) SAVEPOINT active_record_1
42605
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.077128"], ["updated_at", "2020-10-06 23:33:25.077128"], ["author_id", 1008], ["status", 2], ["likes", 10]]
42606
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42607
+ Post Load (0.7ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, SUM(posts.likes) AS _report_aggregator_total_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
42608
+  (0.3ms) ROLLBACK
42609
+  (0.1ms) BEGIN
42610
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42611
+  (0.1ms) SAVEPOINT active_record_1
42612
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.084137"], ["updated_at", "2020-10-06 23:33:25.084137"], ["name", "Alice"]]
42613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42614
+  (0.1ms) SAVEPOINT active_record_1
42615
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.085545"], ["updated_at", "2020-10-06 23:33:25.085545"], ["author_id", 1009], ["status", 2], ["likes", 3]]
42616
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42617
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42618
+  (0.1ms) SAVEPOINT active_record_1
42619
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.088132"], ["updated_at", "2020-10-06 23:33:25.088132"], ["author_id", 1009], ["status", 2], ["likes", 2]]
42620
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42621
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42622
+  (0.1ms) SAVEPOINT active_record_1
42623
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.090594"], ["updated_at", "2020-10-06 23:33:25.090594"], ["name", "Bob"]]
42624
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42625
+  (0.1ms) SAVEPOINT active_record_1
42626
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.091914"], ["updated_at", "2020-10-06 23:33:25.091914"], ["author_id", 1010], ["status", 2], ["likes", 4]]
42627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42628
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42629
+  (0.1ms) SAVEPOINT active_record_1
42630
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.094301"], ["updated_at", "2020-10-06 23:33:25.094301"], ["author_id", 1010], ["status", 2], ["likes", 1]]
42631
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42632
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42633
+  (0.2ms) SAVEPOINT active_record_1
42634
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.097435"], ["updated_at", "2020-10-06 23:33:25.097435"], ["author_id", 1010], ["status", 2], ["likes", 5]]
42635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42636
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
42637
+  (0.1ms) SAVEPOINT active_record_1
42638
+ Author Create (0.2ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.100250"], ["updated_at", "2020-10-06 23:33:25.100250"], ["name", "Chester"]]
42639
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42640
+  (0.1ms) SAVEPOINT active_record_1
42641
+ Post Create (18.2ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-06 23:33:25.101557"], ["updated_at", "2020-10-06 23:33:25.101557"], ["author_id", 1011], ["status", 2], ["likes", 10]]
42642
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42643
+ Post Load (0.7ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, COUNT(DISTINCT posts.id) AS _report_aggregator_count FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
42644
+  (0.2ms) ROLLBACK
42645
+  (0.1ms) BEGIN
42646
+  (0.1ms) ROLLBACK
42647
+  (0.1ms) BEGIN
42648
+  (0.1ms) ROLLBACK
42649
+  (0.2ms) BEGIN
42650
+  (0.1ms) ROLLBACK
42651
+  (0.1ms) BEGIN
42652
+  (0.2ms) ROLLBACK
42653
+  (0.1ms) BEGIN
42654
+  (0.1ms) ROLLBACK
42655
+  (0.1ms) BEGIN
42656
+  (0.1ms) ROLLBACK
42657
+  (0.1ms) BEGIN
42658
+  (0.1ms) ROLLBACK
42659
+  (0.1ms) BEGIN
42660
+  (0.3ms) ROLLBACK
42661
+  (0.2ms) BEGIN
42662
+  (0.1ms) ROLLBACK
42663
+  (0.1ms) BEGIN
42664
+  (0.1ms) ROLLBACK
42665
+  (0.1ms) BEGIN
42666
+  (0.1ms) ROLLBACK
42667
+  (0.1ms) BEGIN
42668
+  (0.1ms) ROLLBACK
42669
+  (0.1ms) BEGIN
42670
+  (0.1ms) ROLLBACK
42671
+  (0.1ms) BEGIN
42672
+  (0.1ms) ROLLBACK
42673
+  (0.1ms) BEGIN
42674
+  (0.1ms) ROLLBACK
42675
+  (0.1ms) BEGIN
42676
+  (0.1ms) ROLLBACK
42677
+  (0.1ms) BEGIN
42678
+  (0.2ms) ROLLBACK
42679
+  (0.1ms) BEGIN
42680
+  (0.1ms) ROLLBACK
42681
+  (0.1ms) BEGIN
42682
+  (0.1ms) ROLLBACK
42683
+  (0.1ms) BEGIN
42684
+  (0.5ms) SELECT MIN(posts.likes) FROM "posts"
42685
+  (0.2ms) SELECT MAX(posts.likes) FROM "posts"
42686
+  (0.1ms) SAVEPOINT active_record_1
42687
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.152767"], ["updated_at", "2020-10-06 23:33:25.152767"], ["status", 2], ["likes", 3]]
42688
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42689
+  (0.1ms) SAVEPOINT active_record_1
42690
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.154366"], ["updated_at", "2020-10-06 23:33:25.154366"], ["status", 2], ["likes", 10]]
42691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42692
+  (0.1ms) SAVEPOINT active_record_1
42693
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.156024"], ["updated_at", "2020-10-06 23:33:25.156024"], ["status", 2], ["likes", 1]]
42694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42695
+  (0.3ms) SELECT MIN(posts.likes) FROM "posts"
42696
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
42697
+  (0.2ms) ROLLBACK
42698
+  (0.1ms) BEGIN
42699
+  (0.3ms) ROLLBACK
42700
+  (0.1ms) BEGIN
42701
+  (0.4ms) SAVEPOINT active_record_1
42702
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.175027"], ["updated_at", "2020-10-06 23:33:25.175027"], ["status", 2], ["likes", 2]]
42703
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42704
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
42705
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
42706
+  (0.2ms) ROLLBACK
42707
+  (0.1ms) BEGIN
42708
+  (0.2ms) ROLLBACK
42709
+  (0.1ms) BEGIN
42710
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42711
+  (0.2ms) SAVEPOINT active_record_1
42712
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.183845"], ["updated_at", "2020-10-06 23:33:25.183845"], ["name", "Alice"]]
42713
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42714
+  (0.2ms) SAVEPOINT active_record_1
42715
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.185414"], ["updated_at", "2020-10-06 23:33:25.185414"], ["author_id", 1012], ["status", 2]]
42716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42717
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42718
+  (0.1ms) SAVEPOINT active_record_1
42719
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.187743"], ["updated_at", "2020-10-06 23:33:25.187743"], ["name", "Bob"]]
42720
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42721
+  (0.1ms) SAVEPOINT active_record_1
42722
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.189236"], ["updated_at", "2020-10-06 23:33:25.189236"], ["author_id", 1013], ["status", 2]]
42723
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42724
+  (0.1ms) SAVEPOINT active_record_1
42725
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.190912"], ["updated_at", "2020-10-06 23:33:25.190912"], ["status", 2]]
42726
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42727
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice'))
42728
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN (NULL))
42729
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN ('Alice'))
42730
+ Post Load (0.7ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice','Bob'))
42731
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN (NULL))
42732
+  (0.2ms) ROLLBACK
42733
+  (0.1ms) BEGIN
42734
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42735
+  (0.1ms) SAVEPOINT active_record_1
42736
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.200312"], ["updated_at", "2020-10-06 23:33:25.200312"], ["name", "Alice"]]
42737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42738
+  (0.2ms) SAVEPOINT active_record_1
42739
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.201907"], ["updated_at", "2020-10-06 23:33:25.201907"], ["author_id", 1014], ["status", 2]]
42740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42741
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
42742
+  (0.2ms) SAVEPOINT active_record_1
42743
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.204381"], ["updated_at", "2020-10-06 23:33:25.204381"], ["author_id", 1014], ["status", 2]]
42744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42745
+  (0.2ms) SAVEPOINT active_record_1
42746
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.206163"], ["updated_at", "2020-10-06 23:33:25.206163"], ["status", 2]]
42747
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42748
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42749
+  (0.2ms) SAVEPOINT active_record_1
42750
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.208869"], ["updated_at", "2020-10-06 23:33:25.208869"], ["name", "Bob"]]
42751
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42752
+  (0.2ms) SAVEPOINT active_record_1
42753
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.210330"], ["updated_at", "2020-10-06 23:33:25.210330"], ["author_id", 1015], ["status", 2]]
42754
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42755
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42756
+  (0.2ms) SAVEPOINT active_record_1
42757
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.213074"], ["updated_at", "2020-10-06 23:33:25.213074"], ["author_id", 1015], ["status", 2]]
42758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42759
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
42760
+  (0.1ms) SAVEPOINT active_record_1
42761
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 23:33:25.215799"], ["updated_at", "2020-10-06 23:33:25.215799"], ["author_id", 1015], ["status", 2]]
42762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42763
+ Post Load (0.8ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(*) AS count FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
42764
+  (0.2ms) ROLLBACK
42765
+  (0.1ms) BEGIN
42766
+  (0.1ms) ROLLBACK
42767
+  (0.1ms) BEGIN
42768
+  (0.2ms) ROLLBACK
42769
+  (0.2ms) BEGIN
42770
+  (0.2ms) ROLLBACK
42771
+  (0.1ms) BEGIN
42772
+  (0.1ms) ROLLBACK
42773
+  (0.1ms) BEGIN
42774
+  (0.1ms) ROLLBACK
42775
+  (0.1ms) BEGIN
42776
+  (0.2ms) ROLLBACK
42777
+  (0.2ms) BEGIN
42778
+  (0.1ms) ROLLBACK
42779
+  (0.2ms) BEGIN
42780
+  (0.2ms) ROLLBACK
42781
+  (0.2ms) BEGIN
42782
+  (0.2ms) ROLLBACK
42783
+  (0.1ms) BEGIN
42784
+  (0.1ms) ROLLBACK
42785
+  (0.1ms) BEGIN
42786
+  (0.2ms) ROLLBACK
42787
+  (0.2ms) BEGIN
42788
+  (0.1ms) ROLLBACK
42789
+  (0.2ms) BEGIN
42790
+  (0.2ms) ROLLBACK
42791
+  (0.2ms) BEGIN
42792
+  (0.2ms) ROLLBACK
42793
+  (0.2ms) BEGIN
42794
+  (0.2ms) ROLLBACK
42795
+  (0.1ms) BEGIN
42796
+  (0.1ms) ROLLBACK
42797
+  (0.1ms) BEGIN
42798
+  (0.1ms) ROLLBACK
42799
+  (0.2ms) BEGIN
42800
+  (0.2ms) ROLLBACK
42801
+  (0.1ms) BEGIN
42802
+  (0.1ms) ROLLBACK
42803
+  (0.1ms) BEGIN
42804
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42805
+  (0.1ms) SAVEPOINT active_record_1
42806
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.257816"], ["updated_at", "2020-10-06 23:33:25.257816"], ["name", "Tammy"]]
42807
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42808
+  (0.2ms) SAVEPOINT active_record_1
42809
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 23:33:25.259532"], ["author_id", 1016], ["status", 2], ["likes", 23]]
42810
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42811
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42812
+  (0.3ms) SAVEPOINT active_record_1
42813
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.263069"], ["author_id", 1016], ["status", 2], ["likes", 7]]
42814
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42815
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42816
+  (0.2ms) SAVEPOINT active_record_1
42817
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 23:33:25.266111"], ["author_id", 1016], ["status", 2], ["likes", 4]]
42818
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42819
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42820
+  (0.2ms) SAVEPOINT active_record_1
42821
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.269061"], ["author_id", 1016], ["status", 2], ["likes", 11]]
42822
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42823
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42824
+  (0.1ms) SAVEPOINT active_record_1
42825
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.272137"], ["updated_at", "2020-10-06 23:33:25.272137"], ["name", "Timmy"]]
42826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42827
+  (0.1ms) SAVEPOINT active_record_1
42828
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.273678"], ["author_id", 1017], ["status", 2], ["likes", 3]]
42829
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42830
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42831
+  (0.2ms) SAVEPOINT active_record_1
42832
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-02-27 00:00:00"], ["updated_at", "2020-10-06 23:33:25.276411"], ["author_id", 1017], ["status", 2], ["likes", 24]]
42833
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42834
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42835
+  (0.2ms) SAVEPOINT active_record_1
42836
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 23:33:25.279565"], ["author_id", 1017], ["status", 2]]
42837
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42838
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42839
+  (0.2ms) SAVEPOINT active_record_1
42840
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.282949"], ["author_id", 1017], ["status", 2], ["likes", 19]]
42841
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42842
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42843
+  (0.1ms) SAVEPOINT active_record_1
42844
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-04-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.285733"], ["author_id", 1017], ["status", 2], ["likes", 8]]
42845
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42846
+  (0.7ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')
42847
+ Post Exists? (0.6ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42848
+ Post Load (1.8ms) SELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
42849
+ SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
42850
+ SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
42851
+ SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
42852
+ SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
42853
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
42854
+ CASE
42855
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
42856
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
42857
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
42858
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
42859
+ END
42860
+ ) WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
42861
+  (0.4ms) ROLLBACK
42862
+  (0.2ms) BEGIN
42863
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42864
+  (0.2ms) SAVEPOINT active_record_1
42865
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.304886"], ["updated_at", "2020-10-06 23:33:25.304886"], ["name", "Tammy"]]
42866
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42867
+  (0.1ms) SAVEPOINT active_record_1
42868
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 23:33:25.306871"], ["author_id", 1018], ["status", 2], ["likes", 23]]
42869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42870
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42871
+  (0.1ms) SAVEPOINT active_record_1
42872
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.309474"], ["author_id", 1018], ["status", 2], ["likes", 7]]
42873
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42874
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42875
+  (0.2ms) SAVEPOINT active_record_1
42876
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 23:33:25.312021"], ["author_id", 1018], ["status", 2], ["likes", 4]]
42877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42878
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42879
+  (0.1ms) SAVEPOINT active_record_1
42880
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.314934"], ["author_id", 1018], ["status", 2], ["likes", 11]]
42881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42882
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42883
+  (0.1ms) SAVEPOINT active_record_1
42884
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.317282"], ["updated_at", "2020-10-06 23:33:25.317282"], ["name", "Timmy"]]
42885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42886
+  (0.2ms) SAVEPOINT active_record_1
42887
+ Post Create (10.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.318702"], ["author_id", 1019], ["status", 2], ["likes", 3]]
42888
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42889
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42890
+  (0.1ms) SAVEPOINT active_record_1
42891
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-02-27 00:00:00"], ["updated_at", "2020-10-06 23:33:25.332001"], ["author_id", 1019], ["status", 2], ["likes", 24]]
42892
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42893
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42894
+  (0.1ms) SAVEPOINT active_record_1
42895
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 23:33:25.334595"], ["author_id", 1019], ["status", 2]]
42896
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42897
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42898
+  (0.1ms) SAVEPOINT active_record_1
42899
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.336972"], ["author_id", 1019], ["status", 2], ["likes", 19]]
42900
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42901
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42902
+  (0.2ms) SAVEPOINT active_record_1
42903
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-04-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.339810"], ["author_id", 1019], ["status", 2], ["likes", 8]]
42904
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42905
+  (0.6ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')
42906
+ Post Exists? (0.8ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42907
+ Post Load (1.2ms) SELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
42908
+ SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
42909
+ SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
42910
+ SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
42911
+ SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
42912
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
42913
+ CASE
42914
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
42915
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
42916
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
42917
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
42918
+ END
42919
+ ) WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
42920
+  (0.3ms) ROLLBACK
42921
+  (0.2ms) BEGIN
42922
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42923
+  (0.2ms) SAVEPOINT active_record_1
42924
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.360598"], ["updated_at", "2020-10-06 23:33:25.360598"], ["name", "Tammy"]]
42925
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42926
+  (0.2ms) SAVEPOINT active_record_1
42927
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 23:33:25.362652"], ["author_id", 1020], ["status", 2], ["likes", 23]]
42928
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42929
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42930
+  (0.2ms) SAVEPOINT active_record_1
42931
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.366014"], ["author_id", 1020], ["status", 2], ["likes", 7]]
42932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42933
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42934
+  (0.2ms) SAVEPOINT active_record_1
42935
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 23:33:25.369006"], ["author_id", 1020], ["status", 2], ["likes", 4]]
42936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42937
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42938
+  (0.2ms) SAVEPOINT active_record_1
42939
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.371557"], ["author_id", 1020], ["status", 2], ["likes", 11]]
42940
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42941
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42942
+  (0.2ms) SAVEPOINT active_record_1
42943
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.374054"], ["updated_at", "2020-10-06 23:33:25.374054"], ["name", "Timmy"]]
42944
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42945
+  (0.1ms) SAVEPOINT active_record_1
42946
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.375503"], ["author_id", 1021], ["status", 2], ["likes", 3]]
42947
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42948
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42949
+  (0.2ms) SAVEPOINT active_record_1
42950
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-02-27 00:00:00"], ["updated_at", "2020-10-06 23:33:25.378118"], ["author_id", 1021], ["status", 2], ["likes", 24]]
42951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42952
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42953
+  (0.1ms) SAVEPOINT active_record_1
42954
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 23:33:25.381070"], ["author_id", 1021], ["status", 2]]
42955
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42956
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42957
+  (0.2ms) SAVEPOINT active_record_1
42958
+ Post Create (6.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.383724"], ["author_id", 1021], ["status", 2], ["likes", 19]]
42959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42960
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
42961
+  (0.2ms) SAVEPOINT active_record_1
42962
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-04-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.392974"], ["author_id", 1021], ["status", 2], ["likes", 8]]
42963
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42964
+  (0.6ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')
42965
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
42966
+ Post Load (1.6ms) SELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
42967
+ SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
42968
+ SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
42969
+ SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
42970
+ SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
42971
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
42972
+ CASE
42973
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
42974
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
42975
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
42976
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
42977
+ END
42978
+ ) WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
42979
+  (0.3ms) ROLLBACK
42980
+  (0.2ms) BEGIN
42981
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42982
+  (0.2ms) SAVEPOINT active_record_1
42983
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.413679"], ["updated_at", "2020-10-06 23:33:25.413679"], ["name", "Tammy"]]
42984
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42985
+  (0.1ms) SAVEPOINT active_record_1
42986
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 23:33:25.415489"], ["author_id", 1022], ["status", 2], ["likes", 23]]
42987
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42988
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42989
+  (0.3ms) SAVEPOINT active_record_1
42990
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.418963"], ["author_id", 1022], ["status", 2], ["likes", 7]]
42991
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42992
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42993
+  (0.3ms) SAVEPOINT active_record_1
42994
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 23:33:25.423477"], ["author_id", 1022], ["status", 2], ["likes", 4]]
42995
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42996
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
42997
+  (0.2ms) SAVEPOINT active_record_1
42998
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.428045"], ["author_id", 1022], ["status", 2], ["likes", 11]]
42999
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43000
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43001
+  (0.2ms) SAVEPOINT active_record_1
43002
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.431616"], ["updated_at", "2020-10-06 23:33:25.431616"], ["name", "Timmy"]]
43003
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43004
+  (0.2ms) SAVEPOINT active_record_1
43005
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.433176"], ["author_id", 1023], ["status", 2], ["likes", 3]]
43006
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43007
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43008
+  (0.3ms) SAVEPOINT active_record_1
43009
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-02-27 00:00:00"], ["updated_at", "2020-10-06 23:33:25.436060"], ["author_id", 1023], ["status", 2], ["likes", 24]]
43010
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43011
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43012
+  (0.2ms) SAVEPOINT active_record_1
43013
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 23:33:25.438844"], ["author_id", 1023], ["status", 2]]
43014
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43015
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43016
+  (0.2ms) SAVEPOINT active_record_1
43017
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.441399"], ["author_id", 1023], ["status", 2], ["likes", 19]]
43018
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43019
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43020
+  (0.1ms) SAVEPOINT active_record_1
43021
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-04-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.444085"], ["author_id", 1023], ["status", 2], ["likes", 8]]
43022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43023
+  (0.7ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')
43024
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43025
+ Post Load (1.2ms) SELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
43026
+ SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
43027
+ SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
43028
+ SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
43029
+ SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
43030
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
43031
+ CASE
43032
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
43033
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
43034
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
43035
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
43036
+ END
43037
+ ) WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
43038
+ Post Load (0.7ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
43039
+ Post Load (0.7ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
43040
+  (0.7ms) ROLLBACK
43041
+  (0.2ms) BEGIN
43042
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43043
+  (0.2ms) SAVEPOINT active_record_1
43044
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.472232"], ["updated_at", "2020-10-06 23:33:25.472232"], ["name", "Tammy"]]
43045
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43046
+  (0.2ms) SAVEPOINT active_record_1
43047
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 23:33:25.474536"], ["author_id", 1024], ["status", 2], ["likes", 23]]
43048
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43049
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43050
+  (0.2ms) SAVEPOINT active_record_1
43051
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.478666"], ["author_id", 1024], ["status", 2], ["likes", 7]]
43052
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43053
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43054
+  (0.2ms) SAVEPOINT active_record_1
43055
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 23:33:25.482800"], ["author_id", 1024], ["status", 2], ["likes", 4]]
43056
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43057
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43058
+  (0.2ms) SAVEPOINT active_record_1
43059
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.486111"], ["author_id", 1024], ["status", 2], ["likes", 11]]
43060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43061
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43062
+  (0.2ms) SAVEPOINT active_record_1
43063
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.489138"], ["updated_at", "2020-10-06 23:33:25.489138"], ["name", "Timmy"]]
43064
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43065
+  (0.1ms) SAVEPOINT active_record_1
43066
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.490973"], ["author_id", 1025], ["status", 2], ["likes", 3]]
43067
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43068
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43069
+  (0.2ms) SAVEPOINT active_record_1
43070
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-02-27 00:00:00"], ["updated_at", "2020-10-06 23:33:25.494075"], ["author_id", 1025], ["status", 2], ["likes", 24]]
43071
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43072
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43073
+  (0.2ms) SAVEPOINT active_record_1
43074
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 23:33:25.498093"], ["author_id", 1025], ["status", 2]]
43075
+  (4.1ms) RELEASE SAVEPOINT active_record_1
43076
+ Author Load (0.6ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43077
+  (0.2ms) SAVEPOINT active_record_1
43078
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.506212"], ["author_id", 1025], ["status", 2], ["likes", 19]]
43079
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43080
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43081
+  (0.2ms) SAVEPOINT active_record_1
43082
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-04-08 00:00:00"], ["updated_at", "2020-10-06 23:33:25.509517"], ["author_id", 1025], ["status", 2], ["likes", 8]]
43083
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43084
+  (0.8ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')
43085
+ Post Exists? (0.7ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43086
+ Post Exists? (0.6ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-01-01 00:00:00')) AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43087
+ Post Load (1.1ms) SELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
43088
+ SELECT CAST('2018-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2018-12-01 00:00:00 UTC,2019-01-01 00:00:00 UTC' AS text) AS bin_text
43089
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
43090
+ CASE
43091
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
43092
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
43093
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
43094
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
43095
+ END
43096
+ ) WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-01-01 00:00:00')) GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST LIMIT $1 [["LIMIT", 1]]
43097
+ Post Load (0.8ms) SELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
43098
+ SELECT CAST('2018-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2018-12-01 00:00:00 UTC,2019-01-01 00:00:00 UTC' AS text) AS bin_text
43099
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
43100
+ CASE
43101
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
43102
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
43103
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
43104
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
43105
+ END
43106
+ ) WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-01-01 00:00:00')) GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
43107
+ Post Load (1.5ms) SELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
43108
+ SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
43109
+ SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
43110
+ SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
43111
+ SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
43112
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
43113
+ CASE
43114
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
43115
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
43116
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
43117
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
43118
+ END
43119
+ ) WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
43120
+  (0.4ms) ROLLBACK
43121
+  (0.2ms) BEGIN
43122
+  (0.2ms) ROLLBACK
43123
+  (0.2ms) BEGIN
43124
+  (0.2ms) ROLLBACK
43125
+  (0.2ms) BEGIN
43126
+  (0.2ms) ROLLBACK
43127
+  (0.1ms) BEGIN
43128
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
43129
+  (0.1ms) SAVEPOINT active_record_1
43130
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.550345"], ["updated_at", "2020-10-06 23:33:25.550345"], ["name", "Phil"]]
43131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43132
+  (0.1ms) SAVEPOINT active_record_1
43133
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.551986"], ["author_id", 1026], ["status", 2]]
43134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43135
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
43136
+  (0.1ms) SAVEPOINT active_record_1
43137
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.554363"], ["author_id", 1026], ["status", 2]]
43138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43139
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
43140
+  (0.1ms) SAVEPOINT active_record_1
43141
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.556976"], ["updated_at", "2020-10-06 23:33:25.556976"], ["name", "Phyllis"]]
43142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43143
+  (0.1ms) SAVEPOINT active_record_1
43144
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.558334"], ["author_id", 1027], ["status", 2]]
43145
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43146
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
43147
+  (0.2ms) SAVEPOINT active_record_1
43148
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.561016"], ["author_id", 1027], ["status", 2]]
43149
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43150
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
43151
+  (0.2ms) ROLLBACK
43152
+  (0.2ms) BEGIN
43153
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
43154
+  (0.2ms) SAVEPOINT active_record_1
43155
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.567563"], ["updated_at", "2020-10-06 23:33:25.567563"], ["name", "Phil"]]
43156
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43157
+  (0.2ms) SAVEPOINT active_record_1
43158
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.569422"], ["author_id", 1028], ["status", 2]]
43159
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43160
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
43161
+  (0.2ms) SAVEPOINT active_record_1
43162
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.572675"], ["author_id", 1028], ["status", 2]]
43163
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43164
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
43165
+  (0.2ms) SAVEPOINT active_record_1
43166
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.575946"], ["updated_at", "2020-10-06 23:33:25.575946"], ["name", "Phyllis"]]
43167
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43168
+  (0.1ms) SAVEPOINT active_record_1
43169
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.577573"], ["author_id", 1029], ["status", 2]]
43170
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43171
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
43172
+  (0.2ms) SAVEPOINT active_record_1
43173
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.581195"], ["author_id", 1029], ["status", 2]]
43174
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43175
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
43176
+  (0.2ms) ROLLBACK
43177
+  (0.1ms) BEGIN
43178
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
43179
+  (0.2ms) SAVEPOINT active_record_1
43180
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.587977"], ["updated_at", "2020-10-06 23:33:25.587977"], ["name", "Phil"]]
43181
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43182
+  (0.2ms) SAVEPOINT active_record_1
43183
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.589715"], ["author_id", 1030], ["status", 2]]
43184
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43185
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
43186
+  (0.2ms) SAVEPOINT active_record_1
43187
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.592484"], ["author_id", 1030], ["status", 2]]
43188
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43189
+ Post Load (0.6ms) SELECT "posts".* FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Phil'))
43190
+  (0.3ms) ROLLBACK
43191
+  (0.2ms) BEGIN
43192
+ Post Exists? (0.6ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('')) LIMIT $1 [["LIMIT", 1]]
43193
+  (0.2ms) ROLLBACK
43194
+  (0.2ms) BEGIN
43195
+ Post Exists? (0.6ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IS NULL OR authors.name IN (NULL)) LIMIT $1 [["LIMIT", 1]]
43196
+  (0.2ms) ROLLBACK
43197
+  (0.2ms) BEGIN
43198
+  (0.2ms) ROLLBACK
43199
+  (0.1ms) BEGIN
43200
+  (0.3ms) ROLLBACK
43201
+  (0.1ms) BEGIN
43202
+  (0.1ms) ROLLBACK
43203
+  (0.2ms) BEGIN
43204
+  (0.2ms) ROLLBACK
43205
+  (0.2ms) BEGIN
43206
+  (0.2ms) ROLLBACK
43207
+  (0.2ms) BEGIN
43208
+  (0.3ms) ROLLBACK
43209
+  (0.2ms) BEGIN
43210
+  (0.2ms) ROLLBACK
43211
+  (0.2ms) BEGIN
43212
+  (0.1ms) ROLLBACK
43213
+  (0.2ms) BEGIN
43214
+  (0.1ms) ROLLBACK
43215
+  (0.1ms) BEGIN
43216
+  (0.1ms) ROLLBACK
43217
+  (0.1ms) BEGIN
43218
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43219
+  (0.2ms) SAVEPOINT active_record_1
43220
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.628222"], ["updated_at", "2020-10-06 23:33:25.628222"], ["name", "Timmy"]]
43221
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43222
+  (0.2ms) SAVEPOINT active_record_1
43223
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.630403"], ["author_id", 1031], ["status", 2], ["likes", 1]]
43224
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43225
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43226
+  (0.2ms) SAVEPOINT active_record_1
43227
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 23:33:25.633193"], ["author_id", 1031], ["status", 2], ["likes", 2]]
43228
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43229
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43230
+  (0.2ms) SAVEPOINT active_record_1
43231
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.636053"], ["updated_at", "2020-10-06 23:33:25.636053"], ["name", "Tammy"]]
43232
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43233
+  (0.2ms) SAVEPOINT active_record_1
43234
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.637956"], ["author_id", 1032], ["status", 2], ["likes", 3]]
43235
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43236
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43237
+  (0.1ms) SAVEPOINT active_record_1
43238
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.640790"], ["author_id", 1032], ["status", 2], ["likes", 4]]
43239
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43240
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43241
+  (0.2ms) SAVEPOINT active_record_1
43242
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.643720"], ["author_id", 1032], ["status", 2], ["likes", 2]]
43243
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43244
+ Post Load (0.4ms) SELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST
43245
+  (0.2ms) ROLLBACK
43246
+  (0.2ms) BEGIN
43247
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43248
+  (0.2ms) SAVEPOINT active_record_1
43249
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.650741"], ["updated_at", "2020-10-06 23:33:25.650741"], ["name", "Timmy"]]
43250
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43251
+  (0.2ms) SAVEPOINT active_record_1
43252
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.652494"], ["author_id", 1033], ["status", 2], ["likes", 1]]
43253
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43254
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
43255
+  (0.2ms) SAVEPOINT active_record_1
43256
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 23:33:25.655509"], ["author_id", 1033], ["status", 2], ["likes", 2]]
43257
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43258
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43259
+  (0.2ms) SAVEPOINT active_record_1
43260
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 23:33:25.658462"], ["updated_at", "2020-10-06 23:33:25.658462"], ["name", "Tammy"]]
43261
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43262
+  (0.2ms) SAVEPOINT active_record_1
43263
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.660118"], ["author_id", 1034], ["status", 2], ["likes", 3]]
43264
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43265
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43266
+  (0.2ms) SAVEPOINT active_record_1
43267
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.663549"], ["author_id", 1034], ["status", 2], ["likes", 4]]
43268
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43269
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
43270
+  (0.2ms) SAVEPOINT active_record_1
43271
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2019-03-15 00:00:00"], ["updated_at", "2020-10-06 23:33:25.666462"], ["author_id", 1034], ["status", 2], ["likes", 2]]
43272
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43273
+ Post Load (0.7ms) SELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Tammy')) GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST
43274
+ Post Load (0.4ms) SELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST
43275
+  (0.2ms) ROLLBACK
43276
+  (0.2ms) BEGIN
43277
+  (0.3ms) SAVEPOINT active_record_1
43278
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.674974"], ["title", "A"], ["status", 2], ["likes", 2]]
43279
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43280
+  (0.2ms) SAVEPOINT active_record_1
43281
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.678576"], ["title", "A"], ["status", 2], ["likes", 2]]
43282
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43283
+  (0.3ms) SAVEPOINT active_record_1
43284
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.682080"], ["title", "B"], ["status", 2], ["likes", 1]]
43285
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43286
+  (0.2ms) SAVEPOINT active_record_1
43287
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 23:33:25.685232"], ["title", "A"], ["status", 2], ["likes", 1]]
43288
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43289
+  (0.4ms) SELECT MIN(posts.created_at) FROM "posts"
43290
+  (0.3ms) SELECT MAX(posts.created_at) FROM "posts"
43291
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43292
+ Post Load (0.9ms) SELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count, SUM(posts.likes) AS _report_aggregator_likes_count FROM "posts" INNER JOIN (
43293
+ SELECT CAST('2016-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-01 00:00:00 UTC,2016-01-02 00:00:00 UTC' AS text) AS bin_text UNION
43294
+ SELECT CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-03 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-02 00:00:00 UTC,2016-01-03 00:00:00 UTC' AS text) AS bin_text
43295
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
43296
+ CASE
43297
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
43298
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
43299
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
43300
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
43301
+ END
43302
+ ) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
43303
+  (0.3ms) ROLLBACK
43304
+  (0.2ms) BEGIN
43305
+  (0.2ms) SAVEPOINT active_record_1
43306
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.699698"], ["title", "A"], ["status", 2], ["likes", 2]]
43307
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43308
+  (0.2ms) SAVEPOINT active_record_1
43309
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.702622"], ["title", "A"], ["status", 2], ["likes", 2]]
43310
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43311
+  (0.3ms) SAVEPOINT active_record_1
43312
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.705515"], ["title", "B"], ["status", 2], ["likes", 1]]
43313
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43314
+  (0.2ms) SAVEPOINT active_record_1
43315
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 23:33:25.708976"], ["title", "A"], ["status", 2], ["likes", 1]]
43316
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43317
+ Post Load (0.5ms) SELECT posts.title AS _active_reporter_dimension_title, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" GROUP BY _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
43318
+  (0.3ms) ROLLBACK
43319
+  (0.1ms) BEGIN
43320
+  (0.1ms) SAVEPOINT active_record_1
43321
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.718000"], ["title", "A"], ["status", 2], ["likes", 2]]
43322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43323
+  (0.1ms) SAVEPOINT active_record_1
43324
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.719913"], ["title", "A"], ["status", 2], ["likes", 2]]
43325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43326
+  (0.2ms) SAVEPOINT active_record_1
43327
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.721525"], ["title", "B"], ["status", 2], ["likes", 1]]
43328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43329
+  (0.1ms) SAVEPOINT active_record_1
43330
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 23:33:25.723373"], ["title", "A"], ["status", 2], ["likes", 1]]
43331
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43332
+  (0.5ms) SELECT MIN(posts.likes) FROM "posts"
43333
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
43334
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
43335
+ Post Load (1.1ms) SELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
43336
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
43337
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
43338
+ ) AS _active_reporter_dimension_likes_bin_table ON (
43339
+ CASE
43340
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
43341
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
43342
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
43343
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
43344
+ END
43345
+ ) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
43346
+  (0.3ms) ROLLBACK
43347
+  (0.2ms) BEGIN
43348
+  (0.2ms) SAVEPOINT active_record_1
43349
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.734184"], ["title", "A"], ["status", 2], ["likes", 2]]
43350
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43351
+  (0.2ms) SAVEPOINT active_record_1
43352
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.736962"], ["title", "A"], ["status", 2], ["likes", 2]]
43353
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43354
+  (0.2ms) SAVEPOINT active_record_1
43355
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.739403"], ["title", "B"], ["status", 2], ["likes", 1]]
43356
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43357
+  (0.2ms) SAVEPOINT active_record_1
43358
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 23:33:25.741942"], ["title", "A"], ["status", 2], ["likes", 1]]
43359
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43360
+  (0.6ms) SELECT MIN(posts.created_at) FROM "posts"
43361
+  (0.5ms) SELECT MAX(posts.created_at) FROM "posts"
43362
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43363
+  (0.5ms) SELECT MIN(posts.likes) FROM "posts"
43364
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
43365
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
43366
+ Post Load (1.3ms) SELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
43367
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
43368
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
43369
+ ) AS _active_reporter_dimension_likes_bin_table ON (
43370
+ CASE
43371
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
43372
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
43373
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
43374
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
43375
+ END
43376
+ ) INNER JOIN (
43377
+ SELECT CAST('2016-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-01 00:00:00 UTC,2016-01-02 00:00:00 UTC' AS text) AS bin_text UNION
43378
+ SELECT CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-03 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-02 00:00:00 UTC,2016-01-03 00:00:00 UTC' AS text) AS bin_text
43379
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
43380
+ CASE
43381
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
43382
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
43383
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
43384
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
43385
+ END
43386
+ ) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
43387
+  (0.3ms) ROLLBACK
43388
+  (0.2ms) BEGIN
43389
+  (0.2ms) SAVEPOINT active_record_1
43390
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.837220"], ["title", "A"], ["status", 2], ["likes", 2]]
43391
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43392
+  (0.1ms) SAVEPOINT active_record_1
43393
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.839500"], ["title", "A"], ["status", 2], ["likes", 2]]
43394
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43395
+  (0.3ms) SAVEPOINT active_record_1
43396
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.841689"], ["title", "B"], ["status", 2], ["likes", 1]]
43397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43398
+  (0.2ms) SAVEPOINT active_record_1
43399
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 23:33:25.844165"], ["title", "A"], ["status", 2], ["likes", 1]]
43400
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43401
+  (0.2ms) ROLLBACK
43402
+  (0.1ms) BEGIN
43403
+  (0.1ms) SAVEPOINT active_record_1
43404
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.848610"], ["title", "A"], ["status", 2], ["likes", 2]]
43405
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43406
+  (0.2ms) SAVEPOINT active_record_1
43407
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.850909"], ["title", "A"], ["status", 2], ["likes", 2]]
43408
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43409
+  (0.3ms) SAVEPOINT active_record_1
43410
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.853583"], ["title", "B"], ["status", 2], ["likes", 1]]
43411
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43412
+  (0.2ms) SAVEPOINT active_record_1
43413
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 23:33:25.856726"], ["title", "A"], ["status", 2], ["likes", 1]]
43414
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43415
+  (0.5ms) SELECT COUNT(*) FROM "posts"
43416
+  (0.3ms) SELECT COUNT(*) FROM "posts"
43417
+  (0.2ms) ROLLBACK
43418
+  (0.2ms) BEGIN
43419
+  (0.3ms) SAVEPOINT active_record_1
43420
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.863967"], ["title", "A"], ["status", 2], ["likes", 2]]
43421
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43422
+  (0.2ms) SAVEPOINT active_record_1
43423
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.867211"], ["title", "A"], ["status", 2], ["likes", 2]]
43424
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43425
+  (0.2ms) SAVEPOINT active_record_1
43426
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 23:33:25.869984"], ["title", "B"], ["status", 2], ["likes", 1]]
43427
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43428
+  (0.1ms) SAVEPOINT active_record_1
43429
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 23:33:25.872249"], ["title", "A"], ["status", 2], ["likes", 1]]
43430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43431
+  (0.3ms) SELECT MIN(posts.created_at) FROM "posts"
43432
+  (0.3ms) SELECT MAX(posts.created_at) FROM "posts"
43433
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43434
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
43435
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
43436
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
43437
+ Post Load (1.6ms) SELECT _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, posts.title AS _active_reporter_dimension_title, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
43438
+ SELECT CAST('2016-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-01 00:00:00 UTC,2016-01-02 00:00:00 UTC' AS text) AS bin_text UNION
43439
+ SELECT CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-03 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-02 00:00:00 UTC,2016-01-03 00:00:00 UTC' AS text) AS bin_text
43440
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
43441
+ CASE
43442
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
43443
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
43444
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
43445
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
43446
+ END
43447
+ ) INNER JOIN (
43448
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
43449
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
43450
+ ) AS _active_reporter_dimension_likes_bin_table ON (
43451
+ CASE
43452
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
43453
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
43454
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
43455
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
43456
+ END
43457
+ ) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
43458
+  (0.3ms) ROLLBACK
43459
+  (0.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
43460
+  (33.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
43461
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
43462
+  (16.8ms) BEGIN
43463
+  (17.3ms) SAVEPOINT active_record_1
43464
+ Author Create (120.6ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.090979"], ["updated_at", "2020-10-08 23:22:43.090979"], ["name", "James Joyce"]]
43465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43466
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43467
+  (0.2ms) SAVEPOINT active_record_1
43468
+ Post Create (11.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.278044"], ["updated_at", "2020-10-08 23:22:43.278044"], ["author_id", 1035], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
43469
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43470
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43471
+  (0.2ms) SAVEPOINT active_record_1
43472
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.294269"], ["updated_at", "2020-10-08 23:22:43.294269"], ["author_id", 1035], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43473
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43474
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43475
+  (0.2ms) SAVEPOINT active_record_1
43476
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.299355"], ["updated_at", "2020-10-08 23:22:43.299355"], ["author_id", 1035], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
43477
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43478
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43479
+  (0.2ms) SAVEPOINT active_record_1
43480
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.304052"], ["updated_at", "2020-10-08 23:22:43.304052"], ["author_id", 1035], ["status", 2], ["likes", 3]]
43481
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43482
+  (0.2ms) SAVEPOINT active_record_1
43483
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.308412"], ["updated_at", "2020-10-08 23:22:43.308412"], ["name", "Virginia Woolf"]]
43484
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43485
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43486
+  (0.2ms) SAVEPOINT active_record_1
43487
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.312872"], ["updated_at", "2020-10-08 23:22:43.312872"], ["author_id", 1036], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43488
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43489
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43490
+  (0.2ms) SAVEPOINT active_record_1
43491
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.317689"], ["updated_at", "2020-10-08 23:22:43.317689"], ["author_id", 1036], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
43492
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43493
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43494
+  (0.2ms) SAVEPOINT active_record_1
43495
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.322399"], ["updated_at", "2020-10-08 23:22:43.322399"], ["author_id", 1036], ["status", 2], ["likes", 3]]
43496
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43497
+  (0.3ms) SAVEPOINT active_record_1
43498
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.326641"], ["updated_at", "2020-10-08 23:22:43.326641"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43499
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43500
+  (0.2ms) SAVEPOINT active_record_1
43501
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.329914"], ["updated_at", "2020-10-08 23:22:43.329914"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
43502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43503
+ Post Load (25.3ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
43504
+  (16.9ms) SELECT MIN(posts.published_at) FROM "posts"
43505
+  (0.6ms) SELECT MAX(posts.published_at) FROM "posts"
43506
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43507
+ Post Load (19.3ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
43508
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
43509
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
43510
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text
43511
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
43512
+ CASE
43513
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
43514
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
43515
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
43516
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
43517
+ END
43518
+ ) GROUP BY _active_reporter_dimension_published_at
43519
+  (0.5ms) SELECT MIN(posts.likes) FROM "posts"
43520
+  (0.5ms) SELECT MAX(posts.likes) FROM "posts"
43521
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
43522
+ Post Load (8.2ms) SELECT _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
43523
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
43524
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
43525
+ SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
43526
+ ) AS _active_reporter_dimension_likes_bin_table ON (
43527
+ CASE
43528
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
43529
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
43530
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
43531
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
43532
+ END
43533
+ ) GROUP BY _active_reporter_dimension_likes
43534
+  (10.8ms) ROLLBACK
43535
+  (0.2ms) BEGIN
43536
+  (0.2ms) SAVEPOINT active_record_1
43537
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.461260"], ["updated_at", "2020-10-08 23:22:43.461260"], ["name", "James Joyce"]]
43538
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43539
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43540
+  (0.3ms) SAVEPOINT active_record_1
43541
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.465233"], ["updated_at", "2020-10-08 23:22:43.465233"], ["author_id", 1037], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
43542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43543
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43544
+  (0.3ms) SAVEPOINT active_record_1
43545
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.469672"], ["updated_at", "2020-10-08 23:22:43.469672"], ["author_id", 1037], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43546
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43547
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43548
+  (0.2ms) SAVEPOINT active_record_1
43549
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.474302"], ["updated_at", "2020-10-08 23:22:43.474302"], ["author_id", 1037], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
43550
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43551
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43552
+  (0.2ms) SAVEPOINT active_record_1
43553
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.477883"], ["updated_at", "2020-10-08 23:22:43.477883"], ["author_id", 1037], ["status", 2], ["likes", 3]]
43554
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43555
+  (0.2ms) SAVEPOINT active_record_1
43556
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.480352"], ["updated_at", "2020-10-08 23:22:43.480352"], ["name", "Virginia Woolf"]]
43557
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43558
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43559
+  (0.2ms) SAVEPOINT active_record_1
43560
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.483581"], ["updated_at", "2020-10-08 23:22:43.483581"], ["author_id", 1038], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43561
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43562
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43563
+  (0.2ms) SAVEPOINT active_record_1
43564
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.486772"], ["updated_at", "2020-10-08 23:22:43.486772"], ["author_id", 1038], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
43565
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43566
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43567
+  (0.2ms) SAVEPOINT active_record_1
43568
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.490197"], ["updated_at", "2020-10-08 23:22:43.490197"], ["author_id", 1038], ["status", 2], ["likes", 3]]
43569
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43570
+  (0.2ms) SAVEPOINT active_record_1
43571
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.492867"], ["updated_at", "2020-10-08 23:22:43.492867"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43572
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43573
+  (0.2ms) SAVEPOINT active_record_1
43574
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.495423"], ["updated_at", "2020-10-08 23:22:43.495423"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
43575
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43576
+  (0.6ms) SELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
43577
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
43578
+ Post Exists? (0.6ms) SELECT 1 AS one FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43579
+ Post Load (1.6ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
43580
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
43581
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
43582
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text
43583
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
43584
+ CASE
43585
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
43586
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
43587
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
43588
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
43589
+ END
43590
+ ) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
43591
+  (0.3ms) ROLLBACK
43592
+  (0.2ms) BEGIN
43593
+  (1.2ms) SAVEPOINT active_record_1
43594
+ Author Create (1.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.519324"], ["updated_at", "2020-10-08 23:22:43.519324"], ["name", "James Joyce"]]
43595
+  (1.0ms) RELEASE SAVEPOINT active_record_1
43596
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43597
+  (0.2ms) SAVEPOINT active_record_1
43598
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.525715"], ["updated_at", "2020-10-08 23:22:43.525715"], ["author_id", 1039], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
43599
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43600
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43601
+  (0.2ms) SAVEPOINT active_record_1
43602
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.529067"], ["updated_at", "2020-10-08 23:22:43.529067"], ["author_id", 1039], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43603
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43604
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43605
+  (0.2ms) SAVEPOINT active_record_1
43606
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.532781"], ["updated_at", "2020-10-08 23:22:43.532781"], ["author_id", 1039], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
43607
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43608
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
43609
+  (0.2ms) SAVEPOINT active_record_1
43610
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.536366"], ["updated_at", "2020-10-08 23:22:43.536366"], ["author_id", 1039], ["status", 2], ["likes", 3]]
43611
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43612
+  (0.1ms) SAVEPOINT active_record_1
43613
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.538894"], ["updated_at", "2020-10-08 23:22:43.538894"], ["name", "Virginia Woolf"]]
43614
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43615
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43616
+  (0.2ms) SAVEPOINT active_record_1
43617
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.541682"], ["updated_at", "2020-10-08 23:22:43.541682"], ["author_id", 1040], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43618
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43619
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43620
+  (0.2ms) SAVEPOINT active_record_1
43621
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2020-10-08 23:22:43.544564"], ["updated_at", "2020-10-08 23:22:43.544564"], ["author_id", 1040], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
43622
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43623
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
43624
+  (0.2ms) SAVEPOINT active_record_1
43625
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.547499"], ["updated_at", "2020-10-08 23:22:43.547499"], ["author_id", 1040], ["status", 2], ["likes", 3]]
43626
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43627
+  (0.2ms) SAVEPOINT active_record_1
43628
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.550526"], ["updated_at", "2020-10-08 23:22:43.550526"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
43629
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43630
+  (0.2ms) SAVEPOINT active_record_1
43631
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.553579"], ["updated_at", "2020-10-08 23:22:43.553579"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
43632
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43633
+ Post Load (1.1ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS LAST
43634
+  (0.6ms) SELECT MIN(posts.published_at) FROM "posts"
43635
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
43636
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43637
+ Post Load (1.0ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
43638
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
43639
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
43640
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text
43641
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
43642
+ CASE
43643
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
43644
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
43645
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
43646
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
43647
+ END
43648
+ ) GROUP BY _active_reporter_dimension_published_at
43649
+ Post Load (0.8ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS LAST
43650
+ Post Load (0.8ms) SELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS FIRST
43651
+  (0.5ms) SELECT MIN(posts.published_at) FROM "posts"
43652
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
43653
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43654
+ Post Load (1.1ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
43655
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
43656
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
43657
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text
43658
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
43659
+ CASE
43660
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
43661
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
43662
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
43663
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
43664
+ END
43665
+ ) GROUP BY _active_reporter_dimension_published_at
43666
+  (0.5ms) SELECT MIN(posts.published_at) FROM "posts"
43667
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
43668
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
43669
+ Post Load (1.1ms) SELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
43670
+ SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
43671
+ SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
43672
+ SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text
43673
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
43674
+ CASE
43675
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
43676
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
43677
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
43678
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
43679
+ END
43680
+ ) GROUP BY _active_reporter_dimension_published_at
43681
+  (0.3ms) ROLLBACK
43682
+  (0.2ms) BEGIN
43683
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
43684
+  (0.1ms) SAVEPOINT active_record_1
43685
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.602315"], ["updated_at", "2020-10-08 23:22:43.602315"], ["name", "Alice"]]
43686
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43687
+  (0.2ms) SAVEPOINT active_record_1
43688
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.604188"], ["updated_at", "2020-10-08 23:22:43.604188"], ["author_id", 1041], ["status", 2], ["likes", 3]]
43689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43690
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
43691
+  (0.1ms) SAVEPOINT active_record_1
43692
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.607075"], ["updated_at", "2020-10-08 23:22:43.607075"], ["author_id", 1041], ["status", 2], ["likes", 2]]
43693
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43694
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43695
+  (0.2ms) SAVEPOINT active_record_1
43696
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.609937"], ["updated_at", "2020-10-08 23:22:43.609937"], ["name", "Bob"]]
43697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43698
+  (0.1ms) SAVEPOINT active_record_1
43699
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.611588"], ["updated_at", "2020-10-08 23:22:43.611588"], ["author_id", 1042], ["status", 2], ["likes", 4]]
43700
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43701
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43702
+  (0.1ms) SAVEPOINT active_record_1
43703
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.614231"], ["updated_at", "2020-10-08 23:22:43.614231"], ["author_id", 1042], ["status", 2], ["likes", 1]]
43704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43705
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43706
+  (0.1ms) SAVEPOINT active_record_1
43707
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.617224"], ["updated_at", "2020-10-08 23:22:43.617224"], ["author_id", 1042], ["status", 2], ["likes", 5]]
43708
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43709
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
43710
+  (0.2ms) SAVEPOINT active_record_1
43711
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.620363"], ["updated_at", "2020-10-08 23:22:43.620363"], ["name", "Chester"]]
43712
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43713
+  (0.1ms) SAVEPOINT active_record_1
43714
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.622334"], ["updated_at", "2020-10-08 23:22:43.622334"], ["author_id", 1043], ["status", 2], ["likes", 10]]
43715
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43716
+ Post Load (12.2ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, ARRAY_AGG(posts.id) AS _report_aggregator_post_ids FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
43717
+  (0.2ms) ROLLBACK
43718
+  (0.2ms) BEGIN
43719
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
43720
+  (0.2ms) SAVEPOINT active_record_1
43721
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.640926"], ["updated_at", "2020-10-08 23:22:43.640926"], ["name", "Alice"]]
43722
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43723
+  (0.2ms) SAVEPOINT active_record_1
43724
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.642861"], ["updated_at", "2020-10-08 23:22:43.642861"], ["author_id", 1044], ["status", 2], ["likes", 3]]
43725
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43726
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
43727
+  (0.2ms) SAVEPOINT active_record_1
43728
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.645922"], ["updated_at", "2020-10-08 23:22:43.645922"], ["author_id", 1044], ["status", 2], ["likes", 2]]
43729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43730
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43731
+  (0.3ms) SAVEPOINT active_record_1
43732
+ Author Create (0.6ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.649352"], ["updated_at", "2020-10-08 23:22:43.649352"], ["name", "Bob"]]
43733
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43734
+  (0.2ms) SAVEPOINT active_record_1
43735
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.652323"], ["updated_at", "2020-10-08 23:22:43.652323"], ["author_id", 1045], ["status", 2], ["likes", 4]]
43736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43737
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43738
+  (0.2ms) SAVEPOINT active_record_1
43739
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.655915"], ["updated_at", "2020-10-08 23:22:43.655915"], ["author_id", 1045], ["status", 2], ["likes", 1]]
43740
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43741
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43742
+  (0.2ms) SAVEPOINT active_record_1
43743
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.659056"], ["updated_at", "2020-10-08 23:22:43.659056"], ["author_id", 1045], ["status", 2], ["likes", 5]]
43744
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43745
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
43746
+  (0.1ms) SAVEPOINT active_record_1
43747
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.662107"], ["updated_at", "2020-10-08 23:22:43.662107"], ["name", "Chester"]]
43748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43749
+  (0.2ms) SAVEPOINT active_record_1
43750
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.663690"], ["updated_at", "2020-10-08 23:22:43.663690"], ["author_id", 1046], ["status", 2], ["likes", 10]]
43751
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43752
+ Post Load (0.8ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
43753
+  (0.3ms) ROLLBACK
43754
+  (0.2ms) BEGIN
43755
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
43756
+  (0.2ms) SAVEPOINT active_record_1
43757
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.671786"], ["updated_at", "2020-10-08 23:22:43.671786"], ["name", "Alice"]]
43758
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43759
+  (0.1ms) SAVEPOINT active_record_1
43760
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.673788"], ["updated_at", "2020-10-08 23:22:43.673788"], ["author_id", 1047], ["status", 2], ["likes", 3]]
43761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43762
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
43763
+  (0.1ms) SAVEPOINT active_record_1
43764
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.676447"], ["updated_at", "2020-10-08 23:22:43.676447"], ["author_id", 1047], ["status", 2], ["likes", 2]]
43765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
43766
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43767
+  (0.2ms) SAVEPOINT active_record_1
43768
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.679272"], ["updated_at", "2020-10-08 23:22:43.679272"], ["name", "Bob"]]
43769
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43770
+  (0.2ms) SAVEPOINT active_record_1
43771
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.681186"], ["updated_at", "2020-10-08 23:22:43.681186"], ["author_id", 1048], ["status", 2], ["likes", 4]]
43772
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43773
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43774
+  (0.4ms) SAVEPOINT active_record_1
43775
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.684718"], ["updated_at", "2020-10-08 23:22:43.684718"], ["author_id", 1048], ["status", 2], ["likes", 1]]
43776
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43777
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
43778
+  (0.3ms) SAVEPOINT active_record_1
43779
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.688983"], ["updated_at", "2020-10-08 23:22:43.688983"], ["author_id", 1048], ["status", 2], ["likes", 5]]
43780
+  (0.3ms) RELEASE SAVEPOINT active_record_1
43781
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
43782
+  (0.2ms) SAVEPOINT active_record_1
43783
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-08 23:22:43.692679"], ["updated_at", "2020-10-08 23:22:43.692679"], ["name", "Chester"]]
43784
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43785
+  (0.2ms) SAVEPOINT active_record_1
43786
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-10-08 23:22:43.694672"], ["updated_at", "2020-10-08 23:22:43.694672"], ["author_id", 1049], ["status", 2], ["likes", 10]]
43787
+  (0.2ms) RELEASE SAVEPOINT active_record_1
43788
+ Post Load (0.6ms) SELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MIN(posts.likes) AS _report_aggregator_min_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST
43789
+  (0.2ms) ROLLBACK
43790
+  (0.1ms) BEGIN
43791
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
43792
+  (0.2ms) SAVEPOINT active_record_1
43793
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RE