Merge pull request #67966 from ClickHouse/vdimir/datetime64_constant_to_ast_f

Add test cases to 03217_datetime64_constant_to_ast
This commit is contained in:
vdimir 2024-09-17 14:56:32 +00:00 committed by GitHub
commit 8508b1ba37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 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) SELECT toDateTime64('1970-01-01 00:00:01', 3)
FROM remote('127.0.0.{1,2}', system, one) 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
;