Add test cases to 03217_datetime64_constant_to_ast

This commit is contained in:
vdimir 2024-08-07 09:43:13 +00:00
parent 5c4f2c1985
commit f5c07b8938
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 22 additions and 0 deletions

View File

@ -1,2 +1,5 @@
1970-01-01 00:00:01.000
1970-01-01 00:00:01.000
1970-01-01 00:00:01.000 0
1970-01-01 00:00:01.000 0
1970-01-01 00:00:01.000 0 localhost

View File

@ -4,3 +4,22 @@ SET session_timezone = 'UTC';
SELECT toDateTime64('1970-01-01 00:00:01', 3)
FROM remote('127.0.0.{1,2}', system, one)
;
SELECT toDateTime64('1970-01-01 00:00:01', 3), dummy
FROM remote('127.0.0.{1,2}', system, one)
GROUP BY dummy
ORDER BY dummy
;
SELECT materialize(toDateTime64('1970-01-01 00:00:01', 3)), dummy
FROM remote('127.0.0.{1,2}', system, one)
GROUP BY dummy
ORDER BY dummy
;
SELECT toDateTime64('1970-01-01 00:00:01', 3), sum(dummy), hostname()
FROM remote('127.0.0.{1,2}', system, one)
GROUP BY hostname()
ORDER BY ALL
;