Skip to content

Commit

Permalink
[WIP] CockroachDB
Browse files Browse the repository at this point in the history
  • Loading branch information
branlwyd committed Nov 17, 2023
1 parent 08bfa82 commit da228b1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
39 changes: 25 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions aggregator_core/src/datastore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@ impl<C: Clock> Transaction<'_, C> {
WHERE tasks.task_id = $1
AND collection_jobs.min_batch_timestamp < $3
AND collection_jobs.max_batch_timestamp >= $2
AND collection_jobs.min_batch_timestamp >= COALESCE($3::TIMESTAMP - tasks.report_expiry_age * '1 second'::INTERVAL, '-infinity'::TIMESTAMP)",
AND collection_jobs.min_batch_timestamp >= COALESCE($4::TIMESTAMP - tasks.report_expiry_age * '1 second'::INTERVAL, '-infinity'::TIMESTAMP)",
)
.await?;
self.query(
Expand Down Expand Up @@ -4184,7 +4184,7 @@ impl<C: Clock> Transaction<'_, C> {
.as_ref()
.map(Time::from_naive_date_time);
let max_client_timestamp = row
.get::<_, Option<NaiveDateTime>>("min_client_timestamp")
.get::<_, Option<NaiveDateTime>>("max_client_timestamp")
.as_ref()
.map(Time::from_naive_date_time);
let client_timestamp_interval =
Expand Down

0 comments on commit da228b1

Please sign in to comment.