ClickHouse/tests/queries/0_stateless/01581_to_int_inf_nan.sql
2024-05-30 19:41:08 +00:00

11 lines
610 B
SQL

SELECT toInt64(inf); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toInt128(inf); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toInt256(inf); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toInt64(nan); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toInt128(nan); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toInt256(nan); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toUInt64(inf); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toUInt256(inf); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toUInt64(nan); -- { serverError CANNOT_CONVERT_TYPE }
SELECT toUInt256(nan); -- { serverError CANNOT_CONVERT_TYPE }