ClickHouse/tests/queries/0_stateless/02876_yyyymmddhhmmsstodatetime.reference
2023-09-14 10:37:34 +00:00

87 lines
1.9 KiB
Plaintext

--- YYYYMMDDToDateTime
Invalid input types are rejected
Result type is DateTime
DateTime
Nullable(DateTime)
Check correctness, integer arguments
1970-01-02 11:59:59
1970-01-01 00:00:00
2020-02-29 11:11:11
2023-09-11 15:05:05
2106-02-07 06:28:15
2106-02-07 06:28:15
1970-01-01 00:00:00
Check correctness, float arguments
1970-01-02 11:59:59
1970-01-01 00:00:00
2020-02-29 11:11:11
2023-09-11 15:05:05
2106-02-07 06:28:15
2106-02-07 06:28:15
Check correctness, decimal arguments
1970-01-02 11:59:59
1970-01-01 00:00:00
2020-02-29 11:11:11
2023-09-11 15:05:05
2106-02-07 06:28:15
2106-02-07 06:28:15
Special cases
1970-01-01 00:00:00
1970-01-01 00:00:00
1970-01-01 00:00:00
1970-01-01 00:00:00
2106-02-07 06:28:15
1970-01-01 00:00:00
1970-01-01 00:00:00
1970-01-01 00:00:00
1970-01-01 00:00:00
2023-02-28 11:11:11
1970-01-01 00:00:00
1970-01-01 00:00:00
\N
1970-01-01 00:00:00
1970-01-01 00:00:00
--- YYYYMMDDToDateTime64
Invalid input types are rejected
Result type is DateTime
DateTime64(3)
DateTime64(5)
Nullable(DateTime64(3))
Check correctness, integer arguments
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
2020-02-29 11:11:11.000
2023-09-11 15:05:05.000
2299-12-31 23:59:59.000
2299-12-31 23:59:59.000
Check correctness, float arguments
1900-01-01 00:00:00.900
1900-01-01 00:00:00.898
2020-02-29 11:11:11.102
2023-09-11 15:05:05.102
2299-12-31 23:59:59.102
2299-12-31 23:59:59.102
Check correctness, decimal arguments
1900-01-01 00:00:00.900
1900-01-01 00:00:00.898
2020-02-29 11:11:11.102
2023-09-11 15:05:05.102
2299-12-31 23:59:59.102
2299-12-31 23:59:59.102
Special cases
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
2299-12-31 23:59:59.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
2023-02-28 11:11:11.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
\N
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000