Add test for issue #42520

This commit is contained in:
Robert Schulze 2022-11-08 08:51:01 +00:00
parent 501e43dd01
commit ab0174f3e8
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,25 @@
-- { echoOn }
select toDate(1666249120::Float);
2022-10-20
select toDate(1666249120::Double);
2022-10-20
select toDate(1666249120::UInt32);
2022-10-20
select toDate32(1666249120::Float);
2022-10-20
select toDate32(1666249120::Double);
2022-10-20
select toDate32(1666249120::UInt32);
2022-10-20
select toDateTime(1666249120::Float);
2022-10-20 06:58:08
select toDateTime(1666249120::Double);
2022-10-20 06:58:40
select toDateTime(1666249120::UInt32);
2022-10-20 06:58:40
select toDateTime64(1666249120::Float, 3);
2022-10-20 06:58:49.984
select toDateTime64(1666249120::Double, 3);
2022-10-20 06:58:40.000
select toDateTime64(1666249120::UInt32, 3);
2022-10-20 06:58:40.000

View File

@ -0,0 +1,17 @@
-- { echoOn }
select toDate(1666249120::Float);
select toDate(1666249120::Double);
select toDate(1666249120::UInt32);
select toDate32(1666249120::Float);
select toDate32(1666249120::Double);
select toDate32(1666249120::UInt32);
select toDateTime(1666249120::Float);
select toDateTime(1666249120::Double);
select toDateTime(1666249120::UInt32);
select toDateTime64(1666249120::Float, 3);
select toDateTime64(1666249120::Double, 3);
select toDateTime64(1666249120::UInt32, 3);
-- { echoOff }