test: make sqlness test stable

This commit is contained in:
Ning Sun
2026-09-01 20:57:23 +08:00
parent 279fef9d90
commit 0dffca6298
2 changed files with 3 additions and 1 deletions
@@ -353,9 +353,10 @@ INSERT INTO ts_overflow VALUES ("a", "3000-01-01 00:00:00");
Affected Rows: 1
-- widening to nanoseconds is rejected by region validation: data overflows the target unit
-- SQLNESS REPLACE region_id:\s\d+\(\d+,\s\d+\) region_id: REDACTED
ALTER TABLE ts_overflow MODIFY COLUMN ts TIMESTAMP_NS;
Error: 1004(InvalidArguments), Invalid region request, region_id: 4428111282176(1031, 0), err: cannot widen time index column 'ts' to Nanosecond: data spans [3000-01-01 00:00:00+0000, 3000-01-01 00:00:00+0000] which overflows the target unit's i64 range
Error: 1004(InvalidArguments), Invalid region request, region_id: REDACTED, err: cannot widen time index column 'ts' to Nanosecond: data spans [3000-01-01 00:00:00+0000, 3000-01-01 00:00:00+0000] which overflows the target unit's i64 range
DESCRIBE ts_overflow;
@@ -126,6 +126,7 @@ CREATE TABLE ts_overflow (host STRING, ts TIMESTAMP TIME INDEX);
INSERT INTO ts_overflow VALUES ("a", "3000-01-01 00:00:00");
-- widening to nanoseconds is rejected by region validation: data overflows the target unit
-- SQLNESS REPLACE region_id:\s\d+\(\d+,\s\d+\) region_id: REDACTED
ALTER TABLE ts_overflow MODIFY COLUMN ts TIMESTAMP_NS;
DESCRIBE ts_overflow;