ClickHouse/tests/queries/0_stateless/02469_interval_msan.sql
Alexey Milovidov cb611e698a Add tests
2022-10-22 07:38:03 +02:00

20 lines
975 B
SQL

SELECT now() + 1::Int128; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() + 1::Int256; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() + 1::UInt128; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() + 1::UInt256; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() - 1::Int128; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() - 1::Int256; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() - 1::UInt128; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() - 1::UInt256; -- { serverError ILLEGAL_TYPE_OF_ARGUMENT }
SELECT now() + INTERVAL 1::Int128 SECOND - now();
SELECT now() + INTERVAL 1::Int256 SECOND - now();
SELECT now() + INTERVAL 1::UInt128 SECOND - now();
SELECT now() + INTERVAL 1::UInt256 SECOND - now();
SELECT today() + INTERVAL 1::Int128 DAY - today();
SELECT today() + INTERVAL 1::Int256 DAY - today();
SELECT today() + INTERVAL 1::UInt128 DAY - today();
SELECT today() + INTERVAL 1::UInt256 DAY - today();