ClickHouse/tests/queries/0_stateless/02789_jit_cannot_convert_column.sql
Alexey Milovidov a1b29dc138 Add tests
2023-06-16 23:42:55 +02:00

12 lines
283 B
SQL

SELECT
sum(c),
toInt32((h - null::Nullable(DateTime)) / 3600) + 1 AS a
FROM
(
SELECT count() AS c, h
FROM ( SELECT now() AS h )
WHERE toInt32((h - null::Nullable(DateTime)) / 3600) + 1 = 1
GROUP BY h
)
GROUP BY a settings min_count_to_compile_expression = 0;