Skip to content

Commit

Permalink
fix!: Ensure that MeasurementIndexShardId is non-negative (#1863)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This is updating an existing Liquibase changeset, and will therefore require manual adjustments wherever it has been rolled out. This should only have rolled out to Halo test environments.

Closes #1862
  • Loading branch information
SanjayVas authored Oct 17, 2024
1 parent ae488a6 commit b5c84f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ START BATCH DDL;

ALTER TABLE Measurements
ADD COLUMN MeasurementIndexShardId INT64 NOT NULL AS (
MOD(FARM_FINGERPRINT(CAST(MeasurementId AS STRING)), 64)
ABS(MOD(FARM_FINGERPRINT(CAST(MeasurementId AS STRING)), 64))
) STORED;

DROP INDEX MeasurementsByContinuationToken;
Expand Down

0 comments on commit b5c84f8

Please sign in to comment.