Skip to content

Commit

Permalink
Merge pull request #89 from jakthom/pipelined
Browse files Browse the repository at this point in the history
Flip jetstream posts per minute to piped sql syntax
  • Loading branch information
jakthom authored Nov 21, 2024
2 parents 39031ba + 5416a1b commit d87a961
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hercules-packages/bluesky/1.0.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: bluesky
version: 1.0

extensions:
community:
- name: psql

sources:
- name: profile
type: sql
Expand Down Expand Up @@ -143,7 +147,7 @@ metrics:

- name: jetstream_posts_per_minute_bucket
help: Quantiles of posts per minute
sql: select date_trunc('minute', make_timestamp(time_us)), count(*) from jetstream where commit.collection = 'app.bsky.feed.post' and commit.operation = 'create' group by 1;
sql: from jetstream |> select date_trunc('minute', make_timestamp(time_us)), count(*) where commit.collection = 'app.bsky.feed.post' and commit.operation = 'create' group by 1;
objectives:
- 0.5
- 0.9
Expand Down

0 comments on commit d87a961

Please sign in to comment.