active_reporter 0.6.1 → 0.6.2

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: 760b641c323ac15a10767901f91776f8060353366c74e00333a29f76c43a622f
4
- data.tar.gz: 12e2c7902056ec37e07a72c11d16261390c2aa8e56e1b7395d000d24b2617de8
3
+ metadata.gz: 6789dcbec262ccf45587ae0754e063a10c0124c2a7987da26e683e04db80161d
4
+ data.tar.gz: 189ec9b0ffdf3ed8347b86cb111a549edde6c6a9adad59ebfc8085446d62e675
5
5
  SHA512:
6
- metadata.gz: 94f9875a81ab72172e200920213ca1de4f307f6879dc7163101d7399c5ea0cb3ba80b4b724c4c3b62b0d32daee75fe11a43a68a72d00ed1aa787a43fb3c8e6b4
7
- data.tar.gz: 80d2ee5dc68fe12fc1239bab3305aa4c15ddccbb57daf74183e9e95bb05db7754b3045f927cf5eb2d673c113df1f3b6cd5d5c4b3412dd44cc9404ec891575e64
6
+ metadata.gz: e282086025d1d59671af5d72736e3e2bc9faa03a5b278bf6ae58e100e791892c6481a8c787902115e3d704a51950c17b196a7f0f3db5f1f121f4473d9bee7ae5
7
+ data.tar.gz: ba05093e785459874bdbf78c5e325ada6b027f6e2b5d96caff6b8d6f99d42730ea17a472511693718b62aa907ad7077fa1bfc1ca8648656b17a84ab98528ad44
@@ -38,10 +38,13 @@ module ActiveReporter
38
38
  end
39
39
 
40
40
  calculators.values.each do |calculator|
41
- if calculator.aggregator.nil?
41
+ case
42
+ when calculator.aggregator.nil?
42
43
  add_invalid_param_error(:calculator, ":#{calculator.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
43
- elsif aggregators.exclude?(calculator.aggregator)
44
+ when self.class.aggregators.exclude?(calculator.aggregator)
44
45
  add_invalid_param_error(:calculator, ":#{calculator.name} defines an invalid aggregator :#{calculator.aggregator} (should be in #{self.class.aggregators.keys})")
46
+ when params.include?(:aggregators) && aggregators.exclude?(calculator.aggregator)
47
+ params[:aggregators].push(calculator.aggregator)
45
48
  end
46
49
  end
47
50
  end
@@ -52,14 +55,22 @@ module ActiveReporter
52
55
  end
53
56
 
54
57
  trackers.values.each do |tracker|
55
- if tracker.aggregator.nil?
58
+ case
59
+ when tracker.aggregator.nil?
56
60
  add_invalid_param_error(:tracker, ":#{tracker.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
57
- elsif aggregators.exclude?(tracker.aggregator)
61
+ when self.class.aggregators.exclude?(tracker.aggregator)
58
62
  add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid aggregator :#{tracker.aggregator} (should be in #{self.class.aggregators.keys})")
63
+ when params.include?(:aggregators) && aggregators.exclude?(tracker.aggregator)
64
+ params[:aggregators].push(tracker.aggregator)
59
65
  end
60
66
 
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})")
67
+ if tracker.opts.include?(:prior_aggregator)
68
+ case
69
+ when self.class.aggregators.exclude?(tracker.prior_aggregator)
70
+ add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid prior aggregator :#{tracker.prior_aggregator} (should be in #{self.class.aggregators.keys})")
71
+ when params.include?(:aggregators) && aggregators.exclude?(tracker.prior_aggregator)
72
+ params[:aggregators].push(tracker.prior_aggregator)
73
+ end
63
74
  end
64
75
  end
65
76
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveReporter
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -98352,5 +98352,1306 @@
98352
98352
  WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
98353
98353
  ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
98354
98354
  END
98355
+ ) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
98356
+  (0.2ms) ROLLBACK
98357
+  (17.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
98358
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
98359
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
98360
+  (0.2ms) BEGIN
98361
+  (0.2ms) SAVEPOINT active_record_1
98362
+ Author Create (5.2ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:13:03.434715"], ["updated_at", "2021-04-08 01:13:03.434715"], ["name", "James Joyce"]]
98363
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98364
+ Author Load (0.8ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98365
+  (0.2ms) SAVEPOINT active_record_1
98366
+ Post Create (4.9ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2021-04-08 01:13:03.478850"], ["updated_at", "2021-04-08 01:13:03.478850"], ["author_id", 3103], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
98367
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98368
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98369
+  (0.1ms) SAVEPOINT active_record_1
98370
+ 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", "2021-04-08 01:13:03.488213"], ["updated_at", "2021-04-08 01:13:03.488213"], ["author_id", 3103], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98372
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98373
+  (0.2ms) SAVEPOINT active_record_1
98374
+ 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", "2021-04-08 01:13:03.492392"], ["updated_at", "2021-04-08 01:13:03.492392"], ["author_id", 3103], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
98375
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98376
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98377
+  (0.1ms) SAVEPOINT active_record_1
98378
+ 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", "2021-04-08 01:13:03.496701"], ["updated_at", "2021-04-08 01:13:03.496701"], ["author_id", 3103], ["status", 2], ["likes", 3]]
98379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98380
+  (0.2ms) SAVEPOINT active_record_1
98381
+ Author Create (0.6ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:13:03.500200"], ["updated_at", "2021-04-08 01:13:03.500200"], ["name", "Virginia Woolf"]]
98382
+  (0.3ms) RELEASE SAVEPOINT active_record_1
98383
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98384
+  (0.1ms) SAVEPOINT active_record_1
98385
+ 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", "2021-04-08 01:13:03.504051"], ["updated_at", "2021-04-08 01:13:03.504051"], ["author_id", 3104], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98386
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98387
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98388
+  (0.1ms) SAVEPOINT active_record_1
98389
+ 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", "2021-04-08 01:13:03.508081"], ["updated_at", "2021-04-08 01:13:03.508081"], ["author_id", 3104], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98390
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98391
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98392
+  (0.1ms) SAVEPOINT active_record_1
98393
+ 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", "2021-04-08 01:13:03.510871"], ["updated_at", "2021-04-08 01:13:03.510871"], ["author_id", 3104], ["status", 2], ["likes", 3]]
98394
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98395
+  (0.2ms) SAVEPOINT active_record_1
98396
+ 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", "2021-04-08 01:13:03.514276"], ["updated_at", "2021-04-08 01:13:03.514276"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98398
+  (0.2ms) SAVEPOINT active_record_1
98399
+ Post Create (0.2ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2021-04-08 01:13:03.516587"], ["updated_at", "2021-04-08 01:13:03.516587"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98401
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
98402
+  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
98403
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
98404
+  (0.2ms) BEGIN
98405
+  (0.1ms) SAVEPOINT active_record_1
98406
+ Author Create (0.6ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.056956"], ["updated_at", "2021-04-08 01:40:47.056956"], ["name", "James Joyce"]]
98407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98408
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98409
+  (0.1ms) SAVEPOINT active_record_1
98410
+ 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", "2021-04-08 01:40:47.078725"], ["updated_at", "2021-04-08 01:40:47.078725"], ["author_id", 3105], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
98411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98412
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98413
+  (0.1ms) SAVEPOINT active_record_1
98414
+ 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", "2021-04-08 01:40:47.081674"], ["updated_at", "2021-04-08 01:40:47.081674"], ["author_id", 3105], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98416
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98417
+  (0.1ms) SAVEPOINT active_record_1
98418
+ 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", "2021-04-08 01:40:47.084001"], ["updated_at", "2021-04-08 01:40:47.084001"], ["author_id", 3105], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
98419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98420
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98421
+  (0.1ms) SAVEPOINT active_record_1
98422
+ 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", "2021-04-08 01:40:47.086140"], ["updated_at", "2021-04-08 01:40:47.086140"], ["author_id", 3105], ["status", 2], ["likes", 3]]
98423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98424
+  (0.1ms) SAVEPOINT active_record_1
98425
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.088151"], ["updated_at", "2021-04-08 01:40:47.088151"], ["name", "Virginia Woolf"]]
98426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98427
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98428
+  (0.1ms) SAVEPOINT active_record_1
98429
+ 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", "2021-04-08 01:40:47.092034"], ["updated_at", "2021-04-08 01:40:47.092034"], ["author_id", 3106], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98430
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98431
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98432
+  (0.1ms) SAVEPOINT active_record_1
98433
+ 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", "2021-04-08 01:40:47.095039"], ["updated_at", "2021-04-08 01:40:47.095039"], ["author_id", 3106], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98435
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98436
+  (0.1ms) SAVEPOINT active_record_1
98437
+ 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", "2021-04-08 01:40:47.097520"], ["updated_at", "2021-04-08 01:40:47.097520"], ["author_id", 3106], ["status", 2], ["likes", 3]]
98438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98439
+  (0.2ms) SAVEPOINT active_record_1
98440
+ Post Create (0.7ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2021-04-08 01:40:47.100776"], ["updated_at", "2021-04-08 01:40:47.100776"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98441
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98442
+  (0.2ms) SAVEPOINT active_record_1
98443
+ 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", "2021-04-08 01:40:47.104655"], ["updated_at", "2021-04-08 01:40:47.104655"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98445
+ Post Load (31.5ms) 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
98446
+  (12.0ms) SELECT MIN(posts.published_at) FROM "posts"
98447
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
98448
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
98449
+ Post Load (7.7ms) 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 (
98450
+ 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
98451
+ 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
98452
+ 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
98453
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
98454
+ CASE
98455
+ 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)
98456
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
98457
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
98458
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
98459
+ END
98460
+ ) GROUP BY _active_reporter_dimension_published_at
98461
+  (0.5ms) SELECT MIN(posts.likes) FROM "posts"
98462
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
98463
+ Post Exists? (0.2ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
98464
+ Post Load (3.4ms) 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 (
98465
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
98466
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
98467
+ SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
98468
+ ) AS _active_reporter_dimension_likes_bin_table ON (
98469
+ CASE
98470
+ 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)
98471
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
98472
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
98473
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
98474
+ END
98475
+ ) GROUP BY _active_reporter_dimension_likes
98476
+  (0.4ms) ROLLBACK
98477
+  (0.1ms) BEGIN
98478
+  (1.1ms) SAVEPOINT active_record_1
98479
+ Author Create (1.7ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.216589"], ["updated_at", "2021-04-08 01:40:47.216589"], ["name", "James Joyce"]]
98480
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98481
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98482
+  (0.2ms) SAVEPOINT active_record_1
98483
+ 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", "2021-04-08 01:40:47.223170"], ["updated_at", "2021-04-08 01:40:47.223170"], ["author_id", 3107], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
98484
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98485
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98486
+  (0.2ms) SAVEPOINT active_record_1
98487
+ 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", "2021-04-08 01:40:47.228149"], ["updated_at", "2021-04-08 01:40:47.228149"], ["author_id", 3107], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98489
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98490
+  (0.2ms) SAVEPOINT active_record_1
98491
+ 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", "2021-04-08 01:40:47.233183"], ["updated_at", "2021-04-08 01:40:47.233183"], ["author_id", 3107], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
98492
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98493
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98494
+  (0.2ms) SAVEPOINT active_record_1
98495
+ 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", "2021-04-08 01:40:47.237089"], ["updated_at", "2021-04-08 01:40:47.237089"], ["author_id", 3107], ["status", 2], ["likes", 3]]
98496
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98497
+  (0.2ms) SAVEPOINT active_record_1
98498
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.240438"], ["updated_at", "2021-04-08 01:40:47.240438"], ["name", "Virginia Woolf"]]
98499
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98500
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98501
+  (0.2ms) SAVEPOINT active_record_1
98502
+ 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", "2021-04-08 01:40:47.255657"], ["updated_at", "2021-04-08 01:40:47.255657"], ["author_id", 3108], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98504
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98505
+  (0.1ms) SAVEPOINT active_record_1
98506
+ 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", "2021-04-08 01:40:47.258827"], ["updated_at", "2021-04-08 01:40:47.258827"], ["author_id", 3108], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98507
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98508
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98509
+  (0.2ms) SAVEPOINT active_record_1
98510
+ 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", "2021-04-08 01:40:47.261684"], ["updated_at", "2021-04-08 01:40:47.261684"], ["author_id", 3108], ["status", 2], ["likes", 3]]
98511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98512
+  (0.1ms) SAVEPOINT active_record_1
98513
+ 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", "2021-04-08 01:40:47.264052"], ["updated_at", "2021-04-08 01:40:47.264052"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98515
+  (0.2ms) SAVEPOINT active_record_1
98516
+ 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", "2021-04-08 01:40:47.265975"], ["updated_at", "2021-04-08 01:40:47.265975"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98518
+  (0.4ms) SELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
98519
+  (0.6ms) SELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
98520
+ Post Exists? (0.9ms) 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]]
98521
+ Post Load (1.9ms) 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 (
98522
+ 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
98523
+ 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
98524
+ 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
98525
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
98526
+ CASE
98527
+ 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)
98528
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
98529
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
98530
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
98531
+ END
98532
+ ) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
98533
+  (0.4ms) ROLLBACK
98534
+  (0.1ms) BEGIN
98535
+  (0.2ms) SAVEPOINT active_record_1
98536
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.293883"], ["updated_at", "2021-04-08 01:40:47.293883"], ["name", "James Joyce"]]
98537
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98538
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98539
+  (0.2ms) SAVEPOINT active_record_1
98540
+ 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", "2021-04-08 01:40:47.297171"], ["updated_at", "2021-04-08 01:40:47.297171"], ["author_id", 3109], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
98541
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98542
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98543
+  (0.2ms) SAVEPOINT active_record_1
98544
+ 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", "2021-04-08 01:40:47.300387"], ["updated_at", "2021-04-08 01:40:47.300387"], ["author_id", 3109], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98545
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98546
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98547
+  (0.2ms) SAVEPOINT active_record_1
98548
+ 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", "2021-04-08 01:40:47.303876"], ["updated_at", "2021-04-08 01:40:47.303876"], ["author_id", 3109], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
98549
+  (0.3ms) RELEASE SAVEPOINT active_record_1
98550
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
98551
+  (0.2ms) SAVEPOINT active_record_1
98552
+ 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", "2021-04-08 01:40:47.307834"], ["updated_at", "2021-04-08 01:40:47.307834"], ["author_id", 3109], ["status", 2], ["likes", 3]]
98553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98554
+  (0.2ms) SAVEPOINT active_record_1
98555
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.310099"], ["updated_at", "2021-04-08 01:40:47.310099"], ["name", "Virginia Woolf"]]
98556
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98557
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98558
+  (0.2ms) SAVEPOINT active_record_1
98559
+ 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", "2021-04-08 01:40:47.312875"], ["updated_at", "2021-04-08 01:40:47.312875"], ["author_id", 3110], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98560
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98561
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98562
+  (0.1ms) SAVEPOINT active_record_1
98563
+ Post Create (1.1ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", "2021-04-08 01:40:47.315936"], ["updated_at", "2021-04-08 01:40:47.315936"], ["author_id", 3110], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98564
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98565
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
98566
+  (0.2ms) SAVEPOINT active_record_1
98567
+ 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", "2021-04-08 01:40:47.319551"], ["updated_at", "2021-04-08 01:40:47.319551"], ["author_id", 3110], ["status", 2], ["likes", 3]]
98568
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98569
+  (0.1ms) SAVEPOINT active_record_1
98570
+ 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", "2021-04-08 01:40:47.321926"], ["updated_at", "2021-04-08 01:40:47.321926"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
98571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98572
+  (0.2ms) SAVEPOINT active_record_1
98573
+ 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", "2021-04-08 01:40:47.323704"], ["updated_at", "2021-04-08 01:40:47.323704"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
98574
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98575
+ 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 LAST
98576
+  (0.5ms) SELECT MIN(posts.published_at) FROM "posts"
98577
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
98578
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
98579
+ Post Load (1.2ms) 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 (
98580
+ 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
98581
+ 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
98582
+ 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
98583
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
98584
+ CASE
98585
+ 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)
98586
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
98587
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
98588
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
98589
+ END
98590
+ ) GROUP BY _active_reporter_dimension_published_at
98591
+ 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
98592
+ 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 DESC NULLS FIRST
98593
+  (0.6ms) SELECT MIN(posts.published_at) FROM "posts"
98594
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
98595
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
98596
+ Post Load (2.2ms) 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 (
98597
+ 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
98598
+ 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
98599
+ 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
98600
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
98601
+ CASE
98602
+ 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)
98603
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
98604
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
98605
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
98606
+ END
98607
+ ) GROUP BY _active_reporter_dimension_published_at
98608
+  (0.6ms) SELECT MIN(posts.published_at) FROM "posts"
98609
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts"
98610
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
98611
+ Post Load (1.2ms) 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 (
98612
+ 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
98613
+ 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
98614
+ 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
98615
+ ) AS _active_reporter_dimension_published_at_bin_table ON (
98616
+ CASE
98617
+ 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)
98618
+ WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
98619
+ WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
98620
+ ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
98621
+ END
98622
+ ) GROUP BY _active_reporter_dimension_published_at
98623
+  (0.3ms) ROLLBACK
98624
+  (0.1ms) BEGIN
98625
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98626
+  (0.2ms) SAVEPOINT active_record_1
98627
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.379011"], ["updated_at", "2021-04-08 01:40:47.379011"], ["name", "Alice"]]
98628
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98629
+  (0.2ms) SAVEPOINT active_record_1
98630
+ 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", "2021-04-08 01:40:47.381262"], ["updated_at", "2021-04-08 01:40:47.381262"], ["author_id", 3111], ["status", 2], ["likes", 3]]
98631
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98632
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98633
+  (0.1ms) SAVEPOINT active_record_1
98634
+ 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", "2021-04-08 01:40:47.384322"], ["updated_at", "2021-04-08 01:40:47.384322"], ["author_id", 3111], ["status", 2], ["likes", 2]]
98635
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98636
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98637
+  (0.2ms) SAVEPOINT active_record_1
98638
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.387184"], ["updated_at", "2021-04-08 01:40:47.387184"], ["name", "Bob"]]
98639
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98640
+  (0.1ms) SAVEPOINT active_record_1
98641
+ 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", "2021-04-08 01:40:47.389346"], ["updated_at", "2021-04-08 01:40:47.389346"], ["author_id", 3112], ["status", 2], ["likes", 4]]
98642
+  (0.6ms) RELEASE SAVEPOINT active_record_1
98643
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98644
+  (0.2ms) SAVEPOINT active_record_1
98645
+ 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", "2021-04-08 01:40:47.392757"], ["updated_at", "2021-04-08 01:40:47.392757"], ["author_id", 3112], ["status", 2], ["likes", 1]]
98646
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98647
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98648
+  (0.2ms) SAVEPOINT active_record_1
98649
+ 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", "2021-04-08 01:40:47.396023"], ["updated_at", "2021-04-08 01:40:47.396023"], ["author_id", 3112], ["status", 2], ["likes", 5]]
98650
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98651
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
98652
+  (0.2ms) SAVEPOINT active_record_1
98653
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.399335"], ["updated_at", "2021-04-08 01:40:47.399335"], ["name", "Chester"]]
98654
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98655
+  (0.2ms) SAVEPOINT active_record_1
98656
+ 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", "2021-04-08 01:40:47.401143"], ["updated_at", "2021-04-08 01:40:47.401143"], ["author_id", 3113], ["status", 2], ["likes", 10]]
98657
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98658
+ Post Load (1.7ms) 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
98659
+  (0.2ms) ROLLBACK
98660
+  (0.1ms) BEGIN
98661
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98662
+  (0.1ms) SAVEPOINT active_record_1
98663
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.408687"], ["updated_at", "2021-04-08 01:40:47.408687"], ["name", "Alice"]]
98664
+  (0.3ms) RELEASE SAVEPOINT active_record_1
98665
+  (0.1ms) SAVEPOINT active_record_1
98666
+ 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", "2021-04-08 01:40:47.410337"], ["updated_at", "2021-04-08 01:40:47.410337"], ["author_id", 3114], ["status", 2], ["likes", 3]]
98667
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98668
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98669
+  (0.2ms) SAVEPOINT active_record_1
98670
+ 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", "2021-04-08 01:40:47.413946"], ["updated_at", "2021-04-08 01:40:47.413946"], ["author_id", 3114], ["status", 2], ["likes", 2]]
98671
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98672
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98673
+  (0.1ms) SAVEPOINT active_record_1
98674
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.417040"], ["updated_at", "2021-04-08 01:40:47.417040"], ["name", "Bob"]]
98675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98676
+  (0.1ms) SAVEPOINT active_record_1
98677
+ 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", "2021-04-08 01:40:47.418552"], ["updated_at", "2021-04-08 01:40:47.418552"], ["author_id", 3115], ["status", 2], ["likes", 4]]
98678
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98679
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98680
+  (0.2ms) SAVEPOINT active_record_1
98681
+ 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", "2021-04-08 01:40:47.421592"], ["updated_at", "2021-04-08 01:40:47.421592"], ["author_id", 3115], ["status", 2], ["likes", 1]]
98682
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98683
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98684
+  (0.2ms) SAVEPOINT active_record_1
98685
+ Post Create (1.0ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2021-04-08 01:40:47.425078"], ["updated_at", "2021-04-08 01:40:47.425078"], ["author_id", 3115], ["status", 2], ["likes", 5]]
98686
+  (0.3ms) RELEASE SAVEPOINT active_record_1
98687
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
98688
+  (0.2ms) SAVEPOINT active_record_1
98689
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.429058"], ["updated_at", "2021-04-08 01:40:47.429058"], ["name", "Chester"]]
98690
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98691
+  (0.1ms) SAVEPOINT active_record_1
98692
+ 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", "2021-04-08 01:40:47.430762"], ["updated_at", "2021-04-08 01:40:47.430762"], ["author_id", 3116], ["status", 2], ["likes", 10]]
98693
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98694
+ Post Load (0.7ms) 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
98695
+  (0.2ms) ROLLBACK
98696
+  (0.2ms) BEGIN
98697
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98698
+  (0.2ms) SAVEPOINT active_record_1
98699
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.438128"], ["updated_at", "2021-04-08 01:40:47.438128"], ["name", "Alice"]]
98700
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98701
+  (0.2ms) SAVEPOINT active_record_1
98702
+ 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", "2021-04-08 01:40:47.440105"], ["updated_at", "2021-04-08 01:40:47.440105"], ["author_id", 3117], ["status", 2], ["likes", 3]]
98703
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98704
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98705
+  (0.2ms) SAVEPOINT active_record_1
98706
+ 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", "2021-04-08 01:40:47.443536"], ["updated_at", "2021-04-08 01:40:47.443536"], ["author_id", 3117], ["status", 2], ["likes", 2]]
98707
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98708
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98709
+  (0.2ms) SAVEPOINT active_record_1
98710
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.446786"], ["updated_at", "2021-04-08 01:40:47.446786"], ["name", "Bob"]]
98711
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98712
+  (0.2ms) SAVEPOINT active_record_1
98713
+ 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", "2021-04-08 01:40:47.448853"], ["updated_at", "2021-04-08 01:40:47.448853"], ["author_id", 3118], ["status", 2], ["likes", 4]]
98714
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98715
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98716
+  (0.1ms) SAVEPOINT active_record_1
98717
+ 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", "2021-04-08 01:40:47.451998"], ["updated_at", "2021-04-08 01:40:47.451998"], ["author_id", 3118], ["status", 2], ["likes", 1]]
98718
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98719
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98720
+  (0.2ms) SAVEPOINT active_record_1
98721
+ 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", "2021-04-08 01:40:47.454728"], ["updated_at", "2021-04-08 01:40:47.454728"], ["author_id", 3118], ["status", 2], ["likes", 5]]
98722
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98723
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
98724
+  (0.2ms) SAVEPOINT active_record_1
98725
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.457285"], ["updated_at", "2021-04-08 01:40:47.457285"], ["name", "Chester"]]
98726
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98727
+  (0.1ms) SAVEPOINT active_record_1
98728
+ 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", "2021-04-08 01:40:47.458843"], ["updated_at", "2021-04-08 01:40:47.458843"], ["author_id", 3119], ["status", 2], ["likes", 10]]
98729
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98730
+ Post Load (0.7ms) 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
98731
+  (0.2ms) ROLLBACK
98732
+  (0.2ms) BEGIN
98733
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98734
+  (0.1ms) SAVEPOINT active_record_1
98735
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.465756"], ["updated_at", "2021-04-08 01:40:47.465756"], ["name", "Alice"]]
98736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98737
+  (0.2ms) SAVEPOINT active_record_1
98738
+ 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", "2021-04-08 01:40:47.467335"], ["updated_at", "2021-04-08 01:40:47.467335"], ["author_id", 3120], ["status", 2], ["likes", 3]]
98739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98740
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98741
+  (0.3ms) SAVEPOINT active_record_1
98742
+ 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", "2021-04-08 01:40:47.469863"], ["updated_at", "2021-04-08 01:40:47.469863"], ["author_id", 3120], ["status", 2], ["likes", 2]]
98743
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98744
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98745
+  (0.1ms) SAVEPOINT active_record_1
98746
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.472910"], ["updated_at", "2021-04-08 01:40:47.472910"], ["name", "Bob"]]
98747
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98748
+  (0.2ms) SAVEPOINT active_record_1
98749
+ 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", "2021-04-08 01:40:47.474525"], ["updated_at", "2021-04-08 01:40:47.474525"], ["author_id", 3121], ["status", 2], ["likes", 4]]
98750
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98751
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98752
+  (0.2ms) SAVEPOINT active_record_1
98753
+ 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", "2021-04-08 01:40:47.477818"], ["updated_at", "2021-04-08 01:40:47.477818"], ["author_id", 3121], ["status", 2], ["likes", 1]]
98754
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98755
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98756
+  (0.2ms) SAVEPOINT active_record_1
98757
+ 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", "2021-04-08 01:40:47.480963"], ["updated_at", "2021-04-08 01:40:47.480963"], ["author_id", 3121], ["status", 2], ["likes", 5]]
98758
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98759
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
98760
+  (0.2ms) SAVEPOINT active_record_1
98761
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.483877"], ["updated_at", "2021-04-08 01:40:47.483877"], ["name", "Chester"]]
98762
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98763
+  (0.1ms) SAVEPOINT active_record_1
98764
+ 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", "2021-04-08 01:40:47.485558"], ["updated_at", "2021-04-08 01:40:47.485558"], ["author_id", 3122], ["status", 2], ["likes", 10]]
98765
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98766
+ Post Load (0.8ms) 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
98767
+  (0.2ms) ROLLBACK
98768
+  (0.2ms) BEGIN
98769
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98770
+  (0.2ms) SAVEPOINT active_record_1
98771
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.492940"], ["updated_at", "2021-04-08 01:40:47.492940"], ["name", "Alice"]]
98772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98773
+  (0.2ms) SAVEPOINT active_record_1
98774
+ 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", "2021-04-08 01:40:47.494656"], ["updated_at", "2021-04-08 01:40:47.494656"], ["author_id", 3123], ["status", 2], ["likes", 3]]
98775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98776
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98777
+  (0.1ms) SAVEPOINT active_record_1
98778
+ 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", "2021-04-08 01:40:47.497317"], ["updated_at", "2021-04-08 01:40:47.497317"], ["author_id", 3123], ["status", 2], ["likes", 2]]
98779
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98780
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98781
+  (0.1ms) SAVEPOINT active_record_1
98782
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.499687"], ["updated_at", "2021-04-08 01:40:47.499687"], ["name", "Bob"]]
98783
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98784
+  (0.1ms) SAVEPOINT active_record_1
98785
+ 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", "2021-04-08 01:40:47.501080"], ["updated_at", "2021-04-08 01:40:47.501080"], ["author_id", 3124], ["status", 2], ["likes", 4]]
98786
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98787
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98788
+  (0.1ms) SAVEPOINT active_record_1
98789
+ 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", "2021-04-08 01:40:47.503416"], ["updated_at", "2021-04-08 01:40:47.503416"], ["author_id", 3124], ["status", 2], ["likes", 1]]
98790
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98791
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98792
+  (0.2ms) SAVEPOINT active_record_1
98793
+ 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", "2021-04-08 01:40:47.505834"], ["updated_at", "2021-04-08 01:40:47.505834"], ["author_id", 3124], ["status", 2], ["likes", 5]]
98794
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98795
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
98796
+  (0.1ms) SAVEPOINT active_record_1
98797
+ Author Create (0.9ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.508267"], ["updated_at", "2021-04-08 01:40:47.508267"], ["name", "Chester"]]
98798
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98799
+  (0.1ms) SAVEPOINT active_record_1
98800
+ 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", "2021-04-08 01:40:47.510279"], ["updated_at", "2021-04-08 01:40:47.510279"], ["author_id", 3125], ["status", 2], ["likes", 10]]
98801
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98802
+ Post Load (0.6ms) 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
98803
+  (0.2ms) ROLLBACK
98804
+  (0.1ms) BEGIN
98805
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98806
+  (0.2ms) SAVEPOINT active_record_1
98807
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.516330"], ["updated_at", "2021-04-08 01:40:47.516330"], ["name", "Alice"]]
98808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98809
+  (0.1ms) SAVEPOINT active_record_1
98810
+ 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", "2021-04-08 01:40:47.517947"], ["updated_at", "2021-04-08 01:40:47.517947"], ["author_id", 3126], ["status", 2], ["likes", 3]]
98811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98812
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98813
+  (0.1ms) SAVEPOINT active_record_1
98814
+ 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", "2021-04-08 01:40:47.520464"], ["updated_at", "2021-04-08 01:40:47.520464"], ["author_id", 3126], ["status", 2], ["likes", 2]]
98815
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98816
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98817
+  (0.2ms) SAVEPOINT active_record_1
98818
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.522790"], ["updated_at", "2021-04-08 01:40:47.522790"], ["name", "Bob"]]
98819
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98820
+  (0.1ms) SAVEPOINT active_record_1
98821
+ 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", "2021-04-08 01:40:47.524569"], ["updated_at", "2021-04-08 01:40:47.524569"], ["author_id", 3127], ["status", 2], ["likes", 4]]
98822
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98823
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98824
+  (0.2ms) SAVEPOINT active_record_1
98825
+ 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", "2021-04-08 01:40:47.527371"], ["updated_at", "2021-04-08 01:40:47.527371"], ["author_id", 3127], ["status", 2], ["likes", 1]]
98826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98827
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98828
+  (0.1ms) SAVEPOINT active_record_1
98829
+ 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", "2021-04-08 01:40:47.529864"], ["updated_at", "2021-04-08 01:40:47.529864"], ["author_id", 3127], ["status", 2], ["likes", 5]]
98830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98831
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
98832
+  (0.2ms) SAVEPOINT active_record_1
98833
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.532171"], ["updated_at", "2021-04-08 01:40:47.532171"], ["name", "Chester"]]
98834
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98835
+  (0.1ms) SAVEPOINT active_record_1
98836
+ 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", "2021-04-08 01:40:47.533600"], ["updated_at", "2021-04-08 01:40:47.533600"], ["author_id", 3128], ["status", 2], ["likes", 10]]
98837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98838
+ Post Load (0.6ms) 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
98839
+  (0.2ms) ROLLBACK
98840
+  (0.2ms) BEGIN
98841
+  (0.1ms) ROLLBACK
98842
+  (0.1ms) BEGIN
98843
+  (0.1ms) ROLLBACK
98844
+  (0.1ms) BEGIN
98845
+  (0.1ms) ROLLBACK
98846
+  (0.1ms) BEGIN
98847
+  (0.1ms) ROLLBACK
98848
+  (0.1ms) BEGIN
98849
+  (0.1ms) ROLLBACK
98850
+  (0.1ms) BEGIN
98851
+  (0.1ms) ROLLBACK
98852
+  (0.1ms) BEGIN
98853
+  (0.1ms) ROLLBACK
98854
+  (0.1ms) BEGIN
98855
+  (0.1ms) ROLLBACK
98856
+  (0.1ms) BEGIN
98857
+  (0.1ms) ROLLBACK
98858
+  (0.1ms) BEGIN
98859
+  (0.1ms) ROLLBACK
98860
+  (0.1ms) BEGIN
98861
+  (0.1ms) ROLLBACK
98862
+  (0.1ms) BEGIN
98863
+  (0.1ms) ROLLBACK
98864
+  (0.1ms) BEGIN
98865
+  (0.1ms) ROLLBACK
98866
+  (0.1ms) BEGIN
98867
+  (0.1ms) ROLLBACK
98868
+  (0.1ms) BEGIN
98869
+  (0.1ms) ROLLBACK
98870
+  (0.1ms) BEGIN
98871
+  (0.1ms) ROLLBACK
98872
+  (0.1ms) BEGIN
98873
+  (0.1ms) ROLLBACK
98874
+  (0.1ms) BEGIN
98875
+  (0.2ms) ROLLBACK
98876
+  (0.1ms) BEGIN
98877
+  (0.1ms) ROLLBACK
98878
+  (0.1ms) BEGIN
98879
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
98880
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
98881
+  (0.1ms) SAVEPOINT active_record_1
98882
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.564904"], ["updated_at", "2021-04-08 01:40:47.564904"], ["status", 2], ["likes", 3]]
98883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98884
+  (0.1ms) SAVEPOINT active_record_1
98885
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.566681"], ["updated_at", "2021-04-08 01:40:47.566681"], ["status", 2], ["likes", 10]]
98886
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98887
+  (0.2ms) SAVEPOINT active_record_1
98888
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.568227"], ["updated_at", "2021-04-08 01:40:47.568227"], ["status", 2], ["likes", 1]]
98889
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98890
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
98891
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
98892
+  (0.2ms) ROLLBACK
98893
+  (0.1ms) BEGIN
98894
+  (0.3ms) ROLLBACK
98895
+  (0.1ms) BEGIN
98896
+  (0.2ms) SAVEPOINT active_record_1
98897
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.588569"], ["updated_at", "2021-04-08 01:40:47.588569"], ["status", 2], ["likes", 2]]
98898
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98899
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
98900
+ Post Exists? (0.2ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
98901
+  (0.2ms) ROLLBACK
98902
+  (0.2ms) BEGIN
98903
+  (0.1ms) ROLLBACK
98904
+  (0.1ms) BEGIN
98905
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98906
+  (0.1ms) SAVEPOINT active_record_1
98907
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.595164"], ["updated_at", "2021-04-08 01:40:47.595164"], ["name", "Alice"]]
98908
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98909
+  (0.1ms) SAVEPOINT active_record_1
98910
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.596520"], ["updated_at", "2021-04-08 01:40:47.596520"], ["author_id", 3129], ["status", 2]]
98911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98912
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98913
+  (0.1ms) SAVEPOINT active_record_1
98914
+ Author Create (0.2ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.598556"], ["updated_at", "2021-04-08 01:40:47.598556"], ["name", "Bob"]]
98915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98916
+  (0.1ms) SAVEPOINT active_record_1
98917
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.599750"], ["updated_at", "2021-04-08 01:40:47.599750"], ["author_id", 3130], ["status", 2]]
98918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98919
+  (0.1ms) SAVEPOINT active_record_1
98920
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.601159"], ["updated_at", "2021-04-08 01:40:47.601159"], ["status", 2]]
98921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98922
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice'))
98923
+ 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))
98924
+ Post Load (0.9ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN ('Alice'))
98925
+ Post Load (0.9ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice','Bob'))
98926
+ Post Load (1.0ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN (NULL))
98927
+  (0.4ms) ROLLBACK
98928
+  (0.2ms) BEGIN
98929
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98930
+  (0.1ms) SAVEPOINT active_record_1
98931
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.612818"], ["updated_at", "2021-04-08 01:40:47.612818"], ["name", "Alice"]]
98932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98933
+  (0.1ms) SAVEPOINT active_record_1
98934
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.614209"], ["updated_at", "2021-04-08 01:40:47.614209"], ["author_id", 3131], ["status", 2]]
98935
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98936
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
98937
+  (0.1ms) SAVEPOINT active_record_1
98938
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.616271"], ["updated_at", "2021-04-08 01:40:47.616271"], ["author_id", 3131], ["status", 2]]
98939
+  (0.2ms) RELEASE SAVEPOINT active_record_1
98940
+  (0.1ms) SAVEPOINT active_record_1
98941
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.617913"], ["updated_at", "2021-04-08 01:40:47.617913"], ["status", 2]]
98942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98943
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98944
+  (0.1ms) SAVEPOINT active_record_1
98945
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.619993"], ["updated_at", "2021-04-08 01:40:47.619993"], ["name", "Bob"]]
98946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98947
+  (0.1ms) SAVEPOINT active_record_1
98948
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.621375"], ["updated_at", "2021-04-08 01:40:47.621375"], ["author_id", 3132], ["status", 2]]
98949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98950
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98951
+  (0.1ms) SAVEPOINT active_record_1
98952
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.623674"], ["updated_at", "2021-04-08 01:40:47.623674"], ["author_id", 3132], ["status", 2]]
98953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98954
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
98955
+  (0.1ms) SAVEPOINT active_record_1
98956
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2021-04-08 01:40:47.625664"], ["updated_at", "2021-04-08 01:40:47.625664"], ["author_id", 3132], ["status", 2]]
98957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98958
+ Post Load (0.6ms) 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
98959
+  (0.2ms) ROLLBACK
98960
+  (0.1ms) BEGIN
98961
+  (0.1ms) ROLLBACK
98962
+  (0.1ms) BEGIN
98963
+  (0.4ms) ROLLBACK
98964
+  (0.2ms) BEGIN
98965
+  (0.1ms) ROLLBACK
98966
+  (0.2ms) BEGIN
98967
+  (0.1ms) ROLLBACK
98968
+  (0.1ms) BEGIN
98969
+  (0.1ms) ROLLBACK
98970
+  (0.1ms) BEGIN
98971
+  (0.2ms) ROLLBACK
98972
+  (0.2ms) BEGIN
98973
+  (0.2ms) ROLLBACK
98974
+  (0.1ms) BEGIN
98975
+  (0.2ms) ROLLBACK
98976
+  (0.1ms) BEGIN
98977
+  (0.1ms) ROLLBACK
98978
+  (0.1ms) BEGIN
98979
+  (0.2ms) ROLLBACK
98980
+  (0.2ms) BEGIN
98981
+  (0.1ms) ROLLBACK
98982
+  (0.1ms) BEGIN
98983
+  (0.1ms) ROLLBACK
98984
+  (0.2ms) BEGIN
98985
+  (0.2ms) ROLLBACK
98986
+  (0.1ms) BEGIN
98987
+  (0.1ms) ROLLBACK
98988
+  (0.1ms) BEGIN
98989
+  (0.1ms) ROLLBACK
98990
+  (0.1ms) BEGIN
98991
+  (0.2ms) ROLLBACK
98992
+  (0.1ms) BEGIN
98993
+  (0.1ms) ROLLBACK
98994
+  (0.1ms) BEGIN
98995
+  (0.1ms) ROLLBACK
98996
+  (0.1ms) BEGIN
98997
+  (0.1ms) ROLLBACK
98998
+  (0.1ms) BEGIN
98999
+  (0.1ms) ROLLBACK
99000
+  (0.1ms) BEGIN
99001
+  (0.1ms) ROLLBACK
99002
+  (0.1ms) BEGIN
99003
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99004
+  (0.1ms) SAVEPOINT active_record_1
99005
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.683837"], ["updated_at", "2021-04-08 01:40:47.683837"], ["name", "Tammy"]]
99006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99007
+  (0.1ms) SAVEPOINT active_record_1
99008
+ 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-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.685410"], ["author_id", 3133], ["status", 2], ["likes", 23]]
99009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99010
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99011
+  (0.1ms) SAVEPOINT active_record_1
99012
+ 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-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.687938"], ["author_id", 3133], ["status", 2], ["likes", 7]]
99013
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99014
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99015
+  (0.1ms) SAVEPOINT active_record_1
99016
+ 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-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.690378"], ["author_id", 3133], ["status", 2], ["likes", 4]]
99017
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99018
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99019
+  (0.1ms) SAVEPOINT active_record_1
99020
+ 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-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.692748"], ["author_id", 3133], ["status", 2], ["likes", 11]]
99021
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99022
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99023
+  (0.2ms) SAVEPOINT active_record_1
99024
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.695155"], ["updated_at", "2021-04-08 01:40:47.695155"], ["name", "Timmy"]]
99025
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99026
+  (0.1ms) SAVEPOINT active_record_1
99027
+ 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-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.696598"], ["author_id", 3134], ["status", 2], ["likes", 3]]
99028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99029
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99030
+  (0.1ms) SAVEPOINT active_record_1
99031
+ 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-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.698963"], ["author_id", 3134], ["status", 2], ["likes", 24]]
99032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99033
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99034
+  (0.1ms) SAVEPOINT active_record_1
99035
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.701517"], ["author_id", 3134], ["status", 2]]
99036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99037
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99038
+  (0.2ms) SAVEPOINT active_record_1
99039
+ 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-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.704214"], ["author_id", 3134], ["status", 2], ["likes", 19]]
99040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99041
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99042
+  (0.1ms) SAVEPOINT active_record_1
99043
+ 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-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.706872"], ["author_id", 3134], ["status", 2], ["likes", 8]]
99044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99045
+  (1.4ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')
99046
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99047
+ 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 (
99048
+ SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
99049
+ SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
99050
+ SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
99051
+ SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
99052
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99053
+ CASE
99054
+ 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)
99055
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99056
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99057
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99058
+ END
99059
+ ) WHERE (posts.created_at >= '2020-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
99060
+  (0.3ms) ROLLBACK
99061
+  (0.2ms) BEGIN
99062
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99063
+  (0.2ms) SAVEPOINT active_record_1
99064
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.728001"], ["updated_at", "2021-04-08 01:40:47.728001"], ["name", "Tammy"]]
99065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99066
+  (0.1ms) SAVEPOINT active_record_1
99067
+ 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-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.729623"], ["author_id", 3135], ["status", 2], ["likes", 23]]
99068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99069
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99070
+  (0.1ms) SAVEPOINT active_record_1
99071
+ 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-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.732121"], ["author_id", 3135], ["status", 2], ["likes", 7]]
99072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99073
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99074
+  (0.2ms) SAVEPOINT active_record_1
99075
+ 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-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.734480"], ["author_id", 3135], ["status", 2], ["likes", 4]]
99076
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99077
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99078
+  (0.1ms) SAVEPOINT active_record_1
99079
+ 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-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.736944"], ["author_id", 3135], ["status", 2], ["likes", 11]]
99080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99081
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99082
+  (0.1ms) SAVEPOINT active_record_1
99083
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.739328"], ["updated_at", "2021-04-08 01:40:47.739328"], ["name", "Timmy"]]
99084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99085
+  (0.1ms) SAVEPOINT active_record_1
99086
+ Post Create (1.0ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.740686"], ["author_id", 3136], ["status", 2], ["likes", 3]]
99087
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99088
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99089
+  (0.1ms) SAVEPOINT active_record_1
99090
+ 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-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.743910"], ["author_id", 3136], ["status", 2], ["likes", 24]]
99091
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99092
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99093
+  (0.1ms) SAVEPOINT active_record_1
99094
+ Post Create (1.1ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.746305"], ["author_id", 3136], ["status", 2]]
99095
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99096
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99097
+  (0.1ms) SAVEPOINT active_record_1
99098
+ 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-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.749463"], ["author_id", 3136], ["status", 2], ["likes", 19]]
99099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99100
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99101
+  (0.1ms) SAVEPOINT active_record_1
99102
+ 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-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.752802"], ["author_id", 3136], ["status", 2], ["likes", 8]]
99103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99104
+  (0.5ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')
99105
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99106
+ 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 (
99107
+ SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
99108
+ SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
99109
+ SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
99110
+ SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
99111
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99112
+ CASE
99113
+ 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)
99114
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99115
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99116
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99117
+ END
99118
+ ) WHERE (posts.created_at >= '2020-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
99119
+  (0.3ms) ROLLBACK
99120
+  (0.1ms) BEGIN
99121
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99122
+  (0.1ms) SAVEPOINT active_record_1
99123
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.772954"], ["updated_at", "2021-04-08 01:40:47.772954"], ["name", "Tammy"]]
99124
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99125
+  (0.2ms) SAVEPOINT active_record_1
99126
+ 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-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.774731"], ["author_id", 3137], ["status", 2], ["likes", 23]]
99127
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99128
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99129
+  (0.1ms) SAVEPOINT active_record_1
99130
+ 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-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.777550"], ["author_id", 3137], ["status", 2], ["likes", 7]]
99131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99132
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99133
+  (0.1ms) SAVEPOINT active_record_1
99134
+ 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-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.780160"], ["author_id", 3137], ["status", 2], ["likes", 4]]
99135
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99136
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99137
+  (0.1ms) SAVEPOINT active_record_1
99138
+ Post Create (3.6ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.782624"], ["author_id", 3137], ["status", 2], ["likes", 11]]
99139
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99140
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99141
+  (0.2ms) SAVEPOINT active_record_1
99142
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.788930"], ["updated_at", "2021-04-08 01:40:47.788930"], ["name", "Timmy"]]
99143
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99144
+  (0.1ms) SAVEPOINT active_record_1
99145
+ 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-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.790684"], ["author_id", 3138], ["status", 2], ["likes", 3]]
99146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99147
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99148
+  (0.1ms) SAVEPOINT active_record_1
99149
+ 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-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.793176"], ["author_id", 3138], ["status", 2], ["likes", 24]]
99150
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99151
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99152
+  (0.1ms) SAVEPOINT active_record_1
99153
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.795703"], ["author_id", 3138], ["status", 2]]
99154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99155
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99156
+  (0.1ms) SAVEPOINT active_record_1
99157
+ 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-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.798093"], ["author_id", 3138], ["status", 2], ["likes", 19]]
99158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99159
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99160
+  (0.1ms) SAVEPOINT active_record_1
99161
+ 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-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.800486"], ["author_id", 3138], ["status", 2], ["likes", 8]]
99162
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99163
+  (0.5ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')
99164
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99165
+ 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 (
99166
+ SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
99167
+ SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
99168
+ SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
99169
+ SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
99170
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99171
+ CASE
99172
+ 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)
99173
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99174
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99175
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99176
+ END
99177
+ ) WHERE (posts.created_at >= '2020-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
99178
+  (0.2ms) ROLLBACK
99179
+  (0.1ms) BEGIN
99180
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99181
+  (0.1ms) SAVEPOINT active_record_1
99182
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.818154"], ["updated_at", "2021-04-08 01:40:47.818154"], ["name", "Tammy"]]
99183
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99184
+  (0.2ms) SAVEPOINT active_record_1
99185
+ 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-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.819845"], ["author_id", 3139], ["status", 2], ["likes", 23]]
99186
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99187
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99188
+  (0.1ms) SAVEPOINT active_record_1
99189
+ 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-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.823227"], ["author_id", 3139], ["status", 2], ["likes", 7]]
99190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99191
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99192
+  (0.1ms) SAVEPOINT active_record_1
99193
+ 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-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.825845"], ["author_id", 3139], ["status", 2], ["likes", 4]]
99194
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99195
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99196
+  (0.1ms) SAVEPOINT active_record_1
99197
+ 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-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.828420"], ["author_id", 3139], ["status", 2], ["likes", 11]]
99198
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99199
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99200
+  (0.1ms) SAVEPOINT active_record_1
99201
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.830849"], ["updated_at", "2021-04-08 01:40:47.830849"], ["name", "Timmy"]]
99202
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99203
+  (0.1ms) SAVEPOINT active_record_1
99204
+ 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-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.832180"], ["author_id", 3140], ["status", 2], ["likes", 3]]
99205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99206
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99207
+  (0.1ms) SAVEPOINT active_record_1
99208
+ 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-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.834456"], ["author_id", 3140], ["status", 2], ["likes", 24]]
99209
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99210
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99211
+  (0.1ms) SAVEPOINT active_record_1
99212
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.836854"], ["author_id", 3140], ["status", 2]]
99213
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99214
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99215
+  (0.2ms) SAVEPOINT active_record_1
99216
+ 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-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.839241"], ["author_id", 3140], ["status", 2], ["likes", 19]]
99217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99218
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99219
+  (0.1ms) SAVEPOINT active_record_1
99220
+ 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-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.841539"], ["author_id", 3140], ["status", 2], ["likes", 8]]
99221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99222
+  (0.5ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')
99223
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99224
+ Post Load (1.0ms) 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 (
99225
+ SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
99226
+ SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
99227
+ SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
99228
+ SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
99229
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99230
+ CASE
99231
+ 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)
99232
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99233
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99234
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99235
+ END
99236
+ ) WHERE (posts.created_at >= '2020-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
99237
+ Post Load (0.5ms) 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 >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
99238
+ 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 >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST
99239
+  (0.4ms) ROLLBACK
99240
+  (0.1ms) BEGIN
99241
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99242
+  (0.1ms) SAVEPOINT active_record_1
99243
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.865845"], ["updated_at", "2021-04-08 01:40:47.865845"], ["name", "Tammy"]]
99244
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99245
+  (0.1ms) SAVEPOINT active_record_1
99246
+ 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-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.867497"], ["author_id", 3141], ["status", 2], ["likes", 23]]
99247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99248
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99249
+  (0.1ms) SAVEPOINT active_record_1
99250
+ 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-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.870004"], ["author_id", 3141], ["status", 2], ["likes", 7]]
99251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99252
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99253
+  (0.1ms) SAVEPOINT active_record_1
99254
+ 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-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.872310"], ["author_id", 3141], ["status", 2], ["likes", 4]]
99255
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99256
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99257
+  (0.1ms) SAVEPOINT active_record_1
99258
+ 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-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.874619"], ["author_id", 3141], ["status", 2], ["likes", 11]]
99259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99260
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99261
+  (0.1ms) SAVEPOINT active_record_1
99262
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.876861"], ["updated_at", "2021-04-08 01:40:47.876861"], ["name", "Timmy"]]
99263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99264
+  (0.1ms) SAVEPOINT active_record_1
99265
+ 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-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.878228"], ["author_id", 3142], ["status", 2], ["likes", 3]]
99266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99267
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99268
+  (0.1ms) SAVEPOINT active_record_1
99269
+ 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-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.880437"], ["author_id", 3142], ["status", 2], ["likes", 24]]
99270
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99271
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99272
+  (0.1ms) SAVEPOINT active_record_1
99273
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.882623"], ["author_id", 3142], ["status", 2]]
99274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99275
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99276
+  (0.1ms) SAVEPOINT active_record_1
99277
+ 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-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.884773"], ["author_id", 3142], ["status", 2], ["likes", 19]]
99278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99279
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99280
+  (0.1ms) SAVEPOINT active_record_1
99281
+ 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-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.886900"], ["author_id", 3142], ["status", 2], ["likes", 8]]
99282
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99283
+  (0.5ms) SELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')
99284
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99285
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-01-01 00:00:00')) AND (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99286
+ Post Load (0.7ms) 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 (
99287
+ SELECT CAST('2019-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-12-01 00:00:00 UTC,2020-01-01 00:00:00 UTC' AS text) AS bin_text
99288
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99289
+ CASE
99290
+ 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)
99291
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99292
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99293
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99294
+ END
99295
+ ) WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-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]]
99296
+ Post Load (0.7ms) 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 (
99297
+ SELECT CAST('2019-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-12-01 00:00:00 UTC,2020-01-01 00:00:00 UTC' AS text) AS bin_text
99298
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99299
+ CASE
99300
+ 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)
99301
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99302
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99303
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99304
+ END
99305
+ ) WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-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
99306
+ Post Load (1.4ms) 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 (
99307
+ SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
99308
+ SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
99309
+ SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
99310
+ SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
99311
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99312
+ CASE
99313
+ 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)
99314
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99315
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99316
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99317
+ END
99318
+ ) WHERE (posts.created_at >= '2020-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
99319
+  (0.3ms) ROLLBACK
99320
+  (0.2ms) BEGIN
99321
+  (0.2ms) ROLLBACK
99322
+  (0.1ms) BEGIN
99323
+  (0.2ms) ROLLBACK
99324
+  (0.1ms) BEGIN
99325
+  (0.1ms) ROLLBACK
99326
+  (0.1ms) BEGIN
99327
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
99328
+  (0.2ms) SAVEPOINT active_record_1
99329
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.919157"], ["updated_at", "2021-04-08 01:40:47.919157"], ["name", "Phil"]]
99330
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99331
+  (0.2ms) SAVEPOINT active_record_1
99332
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.920952"], ["author_id", 3143], ["status", 2]]
99333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99334
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
99335
+  (0.1ms) SAVEPOINT active_record_1
99336
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.923499"], ["author_id", 3143], ["status", 2]]
99337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99338
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
99339
+  (0.1ms) SAVEPOINT active_record_1
99340
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.925816"], ["updated_at", "2021-04-08 01:40:47.925816"], ["name", "Phyllis"]]
99341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99342
+  (0.2ms) SAVEPOINT active_record_1
99343
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.927235"], ["author_id", 3144], ["status", 2]]
99344
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99345
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
99346
+  (0.2ms) SAVEPOINT active_record_1
99347
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.929716"], ["author_id", 3144], ["status", 2]]
99348
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99349
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
99350
+  (0.2ms) ROLLBACK
99351
+  (0.1ms) BEGIN
99352
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
99353
+  (0.1ms) SAVEPOINT active_record_1
99354
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.934761"], ["updated_at", "2021-04-08 01:40:47.934761"], ["name", "Phil"]]
99355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99356
+  (0.1ms) SAVEPOINT active_record_1
99357
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.936136"], ["author_id", 3145], ["status", 2]]
99358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99359
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
99360
+  (0.2ms) SAVEPOINT active_record_1
99361
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.938311"], ["author_id", 3145], ["status", 2]]
99362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99363
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
99364
+  (0.1ms) SAVEPOINT active_record_1
99365
+ Author Create (0.2ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.940528"], ["updated_at", "2021-04-08 01:40:47.940528"], ["name", "Phyllis"]]
99366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99367
+  (0.1ms) SAVEPOINT active_record_1
99368
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.941804"], ["author_id", 3146], ["status", 2]]
99369
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99370
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
99371
+  (0.2ms) SAVEPOINT active_record_1
99372
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.944091"], ["author_id", 3146], ["status", 2]]
99373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99374
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
99375
+  (0.2ms) ROLLBACK
99376
+  (0.1ms) BEGIN
99377
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
99378
+  (0.2ms) SAVEPOINT active_record_1
99379
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.949493"], ["updated_at", "2021-04-08 01:40:47.949493"], ["name", "Phil"]]
99380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99381
+  (0.1ms) SAVEPOINT active_record_1
99382
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.950920"], ["author_id", 3147], ["status", 2]]
99383
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99384
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
99385
+  (0.2ms) SAVEPOINT active_record_1
99386
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.953264"], ["author_id", 3147], ["status", 2]]
99387
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99388
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Phil'))
99389
+  (0.2ms) ROLLBACK
99390
+  (0.1ms) BEGIN
99391
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('')) LIMIT $1 [["LIMIT", 1]]
99392
+  (0.2ms) ROLLBACK
99393
+  (0.1ms) BEGIN
99394
+ Post Exists? (0.4ms) 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]]
99395
+  (0.2ms) ROLLBACK
99396
+  (0.1ms) BEGIN
99397
+  (0.1ms) ROLLBACK
99398
+  (0.2ms) BEGIN
99399
+  (0.1ms) ROLLBACK
99400
+  (0.1ms) BEGIN
99401
+  (0.1ms) ROLLBACK
99402
+  (0.1ms) BEGIN
99403
+  (0.1ms) ROLLBACK
99404
+  (0.1ms) BEGIN
99405
+  (0.1ms) ROLLBACK
99406
+  (0.1ms) BEGIN
99407
+  (0.1ms) ROLLBACK
99408
+  (0.1ms) BEGIN
99409
+  (0.1ms) ROLLBACK
99410
+  (0.1ms) BEGIN
99411
+  (0.1ms) ROLLBACK
99412
+  (0.1ms) BEGIN
99413
+  (0.1ms) ROLLBACK
99414
+  (0.1ms) BEGIN
99415
+  (0.1ms) ROLLBACK
99416
+  (0.1ms) BEGIN
99417
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99418
+  (0.2ms) SAVEPOINT active_record_1
99419
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.976641"], ["updated_at", "2021-04-08 01:40:47.976641"], ["name", "Timmy"]]
99420
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99421
+  (0.1ms) SAVEPOINT active_record_1
99422
+ 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-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.978275"], ["author_id", 3148], ["status", 2], ["likes", 1]]
99423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99424
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99425
+  (0.1ms) SAVEPOINT active_record_1
99426
+ 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-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.980606"], ["author_id", 3148], ["status", 2], ["likes", 2]]
99427
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99428
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99429
+  (0.1ms) SAVEPOINT active_record_1
99430
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.982951"], ["updated_at", "2021-04-08 01:40:47.982951"], ["name", "Tammy"]]
99431
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99432
+  (0.1ms) SAVEPOINT active_record_1
99433
+ 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-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.984372"], ["author_id", 3149], ["status", 2], ["likes", 3]]
99434
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99435
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99436
+  (0.2ms) SAVEPOINT active_record_1
99437
+ 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-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.986650"], ["author_id", 3149], ["status", 2], ["likes", 4]]
99438
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99439
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99440
+  (0.2ms) SAVEPOINT active_record_1
99441
+ 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-03-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.989198"], ["author_id", 3149], ["status", 2], ["likes", 2]]
99442
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99443
+ 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
99444
+  (0.3ms) ROLLBACK
99445
+  (0.1ms) BEGIN
99446
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99447
+  (0.1ms) SAVEPOINT active_record_1
99448
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:47.995492"], ["updated_at", "2021-04-08 01:40:47.995492"], ["name", "Timmy"]]
99449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99450
+  (0.1ms) SAVEPOINT active_record_1
99451
+ 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-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.997023"], ["author_id", 3150], ["status", 2], ["likes", 1]]
99452
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99453
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
99454
+  (0.1ms) SAVEPOINT active_record_1
99455
+ 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-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.999359"], ["author_id", 3150], ["status", 2], ["likes", 2]]
99456
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99457
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99458
+  (0.1ms) SAVEPOINT active_record_1
99459
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2021-04-08 01:40:48.001579"], ["updated_at", "2021-04-08 01:40:48.001579"], ["name", "Tammy"]]
99460
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99461
+  (0.1ms) SAVEPOINT active_record_1
99462
+ 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-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:48.002829"], ["author_id", 3151], ["status", 2], ["likes", 3]]
99463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99464
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99465
+  (0.1ms) SAVEPOINT active_record_1
99466
+ 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-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.004871"], ["author_id", 3151], ["status", 2], ["likes", 4]]
99467
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99468
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
99469
+  (0.1ms) SAVEPOINT active_record_1
99470
+ 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-03-15 00:00:00"], ["updated_at", "2021-04-08 01:40:48.007096"], ["author_id", 3151], ["status", 2], ["likes", 2]]
99471
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99472
+ Post Load (0.5ms) 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
99473
+ Post Load (0.3ms) 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
99474
+  (0.2ms) ROLLBACK
99475
+  (0.1ms) BEGIN
99476
+  (0.1ms) SAVEPOINT active_record_1
99477
+ 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", "2021-04-08 01:40:48.014213"], ["title", "A"], ["status", 2], ["likes", 2]]
99478
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99479
+  (0.1ms) SAVEPOINT active_record_1
99480
+ 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", "2021-04-08 01:40:48.015974"], ["title", "A"], ["status", 2], ["likes", 2]]
99481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99482
+  (0.1ms) SAVEPOINT active_record_1
99483
+ 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", "2021-04-08 01:40:48.017499"], ["title", "B"], ["status", 2], ["likes", 1]]
99484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99485
+  (0.1ms) SAVEPOINT active_record_1
99486
+ 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", "2021-04-08 01:40:48.019054"], ["title", "A"], ["status", 2], ["likes", 1]]
99487
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99488
+  (0.4ms) SELECT MIN(posts.created_at) FROM "posts"
99489
+  (0.3ms) SELECT MAX(posts.created_at) FROM "posts"
99490
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99491
+ Post Load (0.8ms) 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 (
99492
+ 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
99493
+ 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
99494
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99495
+ CASE
99496
+ 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)
99497
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99498
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99499
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99500
+ END
99501
+ ) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
99502
+  (0.2ms) ROLLBACK
99503
+  (0.1ms) BEGIN
99504
+  (0.1ms) SAVEPOINT active_record_1
99505
+ 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", "2021-04-08 01:40:48.029819"], ["title", "A"], ["status", 2], ["likes", 2]]
99506
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99507
+  (0.1ms) SAVEPOINT active_record_1
99508
+ 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", "2021-04-08 01:40:48.031762"], ["title", "A"], ["status", 2], ["likes", 2]]
99509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99510
+  (0.1ms) SAVEPOINT active_record_1
99511
+ 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", "2021-04-08 01:40:48.033382"], ["title", "B"], ["status", 2], ["likes", 1]]
99512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99513
+  (0.1ms) SAVEPOINT active_record_1
99514
+ 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", "2021-04-08 01:40:48.034923"], ["title", "A"], ["status", 2], ["likes", 1]]
99515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99516
+ 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
99517
+  (0.2ms) ROLLBACK
99518
+  (0.1ms) BEGIN
99519
+  (0.2ms) SAVEPOINT active_record_1
99520
+ 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", "2021-04-08 01:40:48.040116"], ["title", "A"], ["status", 2], ["likes", 2]]
99521
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99522
+  (0.1ms) SAVEPOINT active_record_1
99523
+ 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", "2021-04-08 01:40:48.042232"], ["title", "A"], ["status", 2], ["likes", 2]]
99524
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99525
+  (0.1ms) SAVEPOINT active_record_1
99526
+ 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", "2021-04-08 01:40:48.044180"], ["title", "B"], ["status", 2], ["likes", 1]]
99527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99528
+  (0.1ms) SAVEPOINT active_record_1
99529
+ 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", "2021-04-08 01:40:48.045966"], ["title", "A"], ["status", 2], ["likes", 1]]
99530
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99531
+  (0.3ms) SELECT MIN(posts.likes) FROM "posts"
99532
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
99533
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
99534
+ Post Load (0.8ms) 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 (
99535
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
99536
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
99537
+ ) AS _active_reporter_dimension_likes_bin_table ON (
99538
+ CASE
99539
+ 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)
99540
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
99541
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
99542
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
99543
+ END
99544
+ ) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
99545
+  (0.2ms) ROLLBACK
99546
+  (0.1ms) BEGIN
99547
+  (0.2ms) SAVEPOINT active_record_1
99548
+ 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", "2021-04-08 01:40:48.054489"], ["title", "A"], ["status", 2], ["likes", 2]]
99549
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99550
+  (0.1ms) SAVEPOINT active_record_1
99551
+ 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", "2021-04-08 01:40:48.056461"], ["title", "A"], ["status", 2], ["likes", 2]]
99552
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99553
+  (0.1ms) SAVEPOINT active_record_1
99554
+ 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", "2021-04-08 01:40:48.058124"], ["title", "B"], ["status", 2], ["likes", 1]]
99555
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99556
+  (0.2ms) SAVEPOINT active_record_1
99557
+ 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", "2021-04-08 01:40:48.059690"], ["title", "A"], ["status", 2], ["likes", 1]]
99558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99559
+  (0.4ms) SELECT MIN(posts.created_at) FROM "posts"
99560
+  (0.3ms) SELECT MAX(posts.created_at) FROM "posts"
99561
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99562
+  (0.3ms) SELECT MIN(posts.likes) FROM "posts"
99563
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
99564
+ Post Exists? (0.2ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
99565
+ 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, _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 (
99566
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
99567
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
99568
+ ) AS _active_reporter_dimension_likes_bin_table ON (
99569
+ CASE
99570
+ 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)
99571
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
99572
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
99573
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
99574
+ END
99575
+ ) INNER JOIN (
99576
+ 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
99577
+ 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
99578
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99579
+ CASE
99580
+ 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)
99581
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99582
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99583
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99584
+ END
99585
+ ) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
99586
+  (0.3ms) ROLLBACK
99587
+  (0.1ms) BEGIN
99588
+  (0.1ms) SAVEPOINT active_record_1
99589
+ 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", "2021-04-08 01:40:48.135988"], ["title", "A"], ["status", 2], ["likes", 2]]
99590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99591
+  (0.1ms) SAVEPOINT active_record_1
99592
+ 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", "2021-04-08 01:40:48.137857"], ["title", "A"], ["status", 2], ["likes", 2]]
99593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99594
+  (0.1ms) SAVEPOINT active_record_1
99595
+ 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", "2021-04-08 01:40:48.139427"], ["title", "B"], ["status", 2], ["likes", 1]]
99596
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99597
+  (0.1ms) SAVEPOINT active_record_1
99598
+ 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", "2021-04-08 01:40:48.140914"], ["title", "A"], ["status", 2], ["likes", 1]]
99599
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99600
+  (0.1ms) ROLLBACK
99601
+  (0.1ms) BEGIN
99602
+  (0.1ms) SAVEPOINT active_record_1
99603
+ 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", "2021-04-08 01:40:48.144108"], ["title", "A"], ["status", 2], ["likes", 2]]
99604
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99605
+  (0.2ms) SAVEPOINT active_record_1
99606
+ 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", "2021-04-08 01:40:48.145778"], ["title", "A"], ["status", 2], ["likes", 2]]
99607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99608
+  (0.1ms) SAVEPOINT active_record_1
99609
+ 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", "2021-04-08 01:40:48.147447"], ["title", "B"], ["status", 2], ["likes", 1]]
99610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99611
+  (0.1ms) SAVEPOINT active_record_1
99612
+ 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", "2021-04-08 01:40:48.149025"], ["title", "A"], ["status", 2], ["likes", 1]]
99613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99614
+  (0.3ms) SELECT COUNT(*) FROM "posts"
99615
+  (0.2ms) SELECT COUNT(*) FROM "posts"
99616
+  (0.2ms) ROLLBACK
99617
+  (0.1ms) BEGIN
99618
+  (0.1ms) SAVEPOINT active_record_1
99619
+ 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", "2021-04-08 01:40:48.153401"], ["title", "A"], ["status", 2], ["likes", 2]]
99620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99621
+  (0.1ms) SAVEPOINT active_record_1
99622
+ 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", "2021-04-08 01:40:48.155071"], ["title", "A"], ["status", 2], ["likes", 2]]
99623
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99624
+  (0.1ms) SAVEPOINT active_record_1
99625
+ 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", "2021-04-08 01:40:48.156626"], ["title", "B"], ["status", 2], ["likes", 1]]
99626
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99627
+  (0.1ms) SAVEPOINT active_record_1
99628
+ 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", "2021-04-08 01:40:48.158154"], ["title", "A"], ["status", 2], ["likes", 1]]
99629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
99630
+  (0.3ms) SELECT MIN(posts.created_at) FROM "posts"
99631
+  (0.3ms) SELECT MAX(posts.created_at) FROM "posts"
99632
+ Post Exists? (0.2ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
99633
+  (0.3ms) SELECT MIN(posts.likes) FROM "posts"
99634
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
99635
+ Post Exists? (0.2ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
99636
+ Post Load (1.0ms) 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 (
99637
+ 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
99638
+ 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
99639
+ ) AS _active_reporter_dimension_created_at_bin_table ON (
99640
+ CASE
99641
+ 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)
99642
+ WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
99643
+ WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
99644
+ ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
99645
+ END
99646
+ ) INNER JOIN (
99647
+ SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
99648
+ SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
99649
+ ) AS _active_reporter_dimension_likes_bin_table ON (
99650
+ CASE
99651
+ 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)
99652
+ WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
99653
+ WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
99654
+ ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
99655
+ END
98355
99656
  ) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST
98356
99657
   (0.2ms) ROLLBACK