diff --git a/src/main/resources/kingdom/spanner/shard-measurements-by-continuation-token.sql b/src/main/resources/kingdom/spanner/shard-measurements-by-continuation-token.sql index c958f8b1835..aa9863a0fac 100644 --- a/src/main/resources/kingdom/spanner/shard-measurements-by-continuation-token.sql +++ b/src/main/resources/kingdom/spanner/shard-measurements-by-continuation-token.sql @@ -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;