Skip to content

Commit

Permalink
Update to MobilityDB 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanzimanyi committed Sep 26, 2023
1 parent 741cd31 commit 9dfdfac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BerlinMOD/berlinmod_datagenerator.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1380,13 +1380,13 @@ BEGIN
-- Random periods

DROP TABLE IF EXISTS Periods;
CREATE TABLE Periods(periodId int PRIMARY KEY, BeginP TimestampTz, EndP TimestampTz, period period);
CREATE TABLE Periods(periodId int PRIMARY KEY, BeginP TimestampTz, EndP TimestampTz, period tstzspan);
INSERT INTO Periods(periodId, period)
WITH Instants AS (
SELECT id, startDay + (random() * noDays) * interval '1 day' AS instant
FROM generate_series(1, P_SAMPLE_SIZE) id
)
SELECT id, Period(instant, instant + abs(random_gauss()) * interval '1 day',
SELECT id, span(instant, instant + abs(random_gauss()) * interval '1 day',
true, true) AS period
FROM Instants;
UPDATE Periods
Expand Down

0 comments on commit 9dfdfac

Please sign in to comment.