diff --git a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.reference b/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.reference index bb75cf90770..eb9c769c60a 100644 --- a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.reference +++ b/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.reference @@ -1,4 +1,4 @@ -2067-01-12 100 key \N -2067-01-12 100 key 100500 -2067-01-12 100 key \N -2067-01-12 100 key 100500 +2000-01-01 100 key \N +2000-01-01 100 key 100500 +2000-01-01 100 key \N +2000-01-01 100 key 100500 diff --git a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql b/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql index 111f4a39344..8ab4d5e6f26 100644 --- a/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql +++ b/dbms/tests/queries/0_stateless/00615_nullable_alter_optimize.sql @@ -9,12 +9,12 @@ CREATE TABLE test data Nullable(Int8) ) ENGINE = MergeTree(dt, (id, key, dt), 8192); -INSERT INTO test (dt,id, key,data) VALUES (now(), 100, 'key', 100500); +INSERT INTO test (dt,id, key,data) VALUES ('2000-01-01', 100, 'key', 100500); alter table test drop column data; alter table test add column data Nullable(Float64); -INSERT INTO test (dt,id, key,data) VALUES (now(), 100, 'key', 100500); +INSERT INTO test (dt,id, key,data) VALUES ('2000-01-01', 100, 'key', 100500); SELECT * FROM test ORDER BY data NULLS FIRST; OPTIMIZE TABLE test;