Skip to content

Commit

Permalink
refactor: events by source index on namespace not from_id (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccerv1 authored Mar 29, 2024
1 parent fdc1805 commit a5c985f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.to_id AS artifact_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.time, DAY) AS bucket_day,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.collection_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.time, DAY) AS bucket_day,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.project_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.time, DAY) AS bucket_day,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.artifact_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.bucket_day, MONTH) AS bucket_month,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.collection_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.bucket_day, MONTH) AS bucket_month,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.project_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.bucket_day, MONTH) AS bucket_month,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.artifact_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.bucket_day, WEEK) AS bucket_week,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.collection_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.bucket_day, WEEK) AS bucket_week,
SUM(e.amount) AS amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

SELECT
e.project_id,
e.from_id,
e.from_namespace,
e.event_type,
TIMESTAMP_TRUNC(e.bucket_day, WEEK) AS bucket_week,
SUM(e.amount) AS amount
Expand Down

0 comments on commit a5c985f

Please sign in to comment.