mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
170 lines
3.0 KiB
Plaintext
170 lines
3.0 KiB
Plaintext
Negative tests
|
|
changeYear
|
|
-- Date
|
|
2001-01-01
|
|
1970-01-01
|
|
1970-01-01
|
|
2149-06-06
|
|
-- Date32
|
|
2001-01-01
|
|
1900-01-01
|
|
1900-01-01
|
|
2299-12-31
|
|
-- DateTime
|
|
2001-01-01 11:22:33
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
2106-02-07 07:28:15
|
|
-- DateTime64
|
|
2001-01-01 11:22:33.4444
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
2299-12-31 23:59:59.9999
|
|
changeMonth
|
|
-- Date
|
|
2000-01-01
|
|
2000-02-01
|
|
2000-12-01
|
|
1970-01-01
|
|
1970-01-01
|
|
1970-01-01
|
|
-- Date32
|
|
2000-01-01
|
|
2000-02-01
|
|
2000-12-01
|
|
1900-01-01
|
|
1900-01-01
|
|
1900-01-01
|
|
-- DateTime
|
|
2000-01-01 11:22:33
|
|
2000-02-01 11:22:33
|
|
2000-12-01 11:22:33
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- DateTime64
|
|
2000-01-01 11:22:33.4444
|
|
2000-02-01 11:22:33.4444
|
|
2000-12-01 11:22:33.4444
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
changeDay
|
|
-- Date
|
|
2000-01-01
|
|
2000-01-02
|
|
2000-01-31
|
|
1970-01-01
|
|
1970-01-01
|
|
1970-01-01
|
|
-- Date32
|
|
2000-01-01
|
|
2000-01-02
|
|
2000-01-31
|
|
1900-01-01
|
|
1900-01-01
|
|
1900-01-01
|
|
-- DateTime
|
|
2000-01-01 11:22:33
|
|
2000-01-02 11:22:33
|
|
2000-01-31 11:22:33
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- DateTime64
|
|
2000-01-01 11:22:33.4444
|
|
2000-01-02 11:22:33.4444
|
|
2000-01-31 11:22:33.4444
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
-- Special case: change to 29 Feb in a leap year
|
|
2000-02-29
|
|
2000-02-29
|
|
2000-02-29 11:22:33
|
|
2000-02-29 11:22:33.4444
|
|
changeHour
|
|
-- Date
|
|
2000-01-01 00:00:00
|
|
2000-01-01 02:00:00
|
|
2000-01-01 23:00:00
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- Date32
|
|
2000-01-01 00:00:00.000
|
|
2000-01-01 02:00:00.000
|
|
2000-01-01 23:00:00.000
|
|
1900-01-01 00:00:00.000
|
|
1900-01-01 00:00:00.000
|
|
-- DateTime
|
|
2000-01-01 00:22:33
|
|
2000-01-01 02:22:33
|
|
2000-01-01 23:22:33
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- DateTime64
|
|
2000-01-01 00:22:33.4444
|
|
2000-01-01 02:22:33.4444
|
|
2000-01-01 23:22:33.4444
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
-- With different timezone
|
|
1970-01-01 07:00:00
|
|
1970-01-01 07:00:00
|
|
changeMinute
|
|
-- Date
|
|
2000-01-01 00:00:00
|
|
2000-01-01 00:02:00
|
|
2000-01-01 00:59:00
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- Date32
|
|
2000-01-01 00:00:00.000
|
|
2000-01-01 00:02:00.000
|
|
2000-01-01 00:59:00.000
|
|
1900-01-01 00:00:00.000
|
|
1900-01-01 00:00:00.000
|
|
-- DateTime
|
|
2000-01-01 11:00:33
|
|
2000-01-01 11:02:33
|
|
2000-01-01 11:59:33
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- DateTime64
|
|
2000-01-01 11:00:33.4444
|
|
2000-01-01 11:02:33.4444
|
|
2000-01-01 11:59:33.4444
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
-- With different timezone
|
|
1970-01-01 07:00:00
|
|
1970-01-01 07:00:00
|
|
changeSecond
|
|
-- Date
|
|
2000-01-01 00:00:00
|
|
2000-01-01 00:00:02
|
|
2000-01-01 00:00:59
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- Date32
|
|
2000-01-01 00:00:00.000
|
|
2000-01-01 00:00:02.000
|
|
2000-01-01 00:00:59.000
|
|
1900-01-01 00:00:00.000
|
|
1900-01-01 00:00:00.000
|
|
-- DateTime
|
|
2000-01-01 11:22:00
|
|
2000-01-01 11:22:02
|
|
2000-01-01 11:22:59
|
|
1970-01-01 01:00:00
|
|
1970-01-01 01:00:00
|
|
-- DateTime64
|
|
2000-01-01 11:22:00.4444
|
|
2000-01-01 11:22:02.4444
|
|
2000-01-01 11:22:59.4444
|
|
1900-01-01 00:00:00.0000
|
|
1900-01-01 00:00:00.0000
|
|
-- With different timezone
|
|
1970-01-01 07:00:00
|
|
1970-01-01 07:00:00
|