mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
Add a test for #36038
This commit is contained in:
parent
2fc2fecd5d
commit
4bc76dfdb4
@ -0,0 +1 @@
|
||||
('Date','2148-06-07') ('Date32','1969-01-01') ('DateTime','2105-02-07 17:10:16') ('DateTime','2105-02-07 17:10:16') ('DateTime64(3)','1969-01-01 10:42:00.000')
|
@ -0,0 +1,5 @@
|
||||
CREATE TEMPORARY TABLE my_table (col_date Date, col_date32 Date32, col_datetime DateTime, col_datetime32 DateTime32, col_datetime64 DateTime64);
|
||||
insert into `my_table` (`col_date`, `col_date32`, `col_datetime`, `col_datetime32`, `col_datetime64`) values (parseDateTime64BestEffort('1969-01-01'), '1969-01-01', parseDateTime64BestEffort('1969-01-01 10:42:00'), parseDateTime64BestEffort('1969-01-01 10:42:00'), parseDateTime64BestEffort('1969-01-01 10:42:00'));
|
||||
|
||||
-- The values for Date32 and DateTime64 will be year 1969, while the values of Date, DateTime will contain a value affected by implementation-defined overflow and can be arbitrary.
|
||||
SELECT * APPLY(x -> (toTypeName(x), x)) FROM my_table;
|
Loading…
Reference in New Issue
Block a user