mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
11 lines
472 B
SQL
11 lines
472 B
SQL
set precise_float_parsing = 1;
|
|
|
|
select cast('2023-01-01' as Float64); -- { serverError CANNOT_PARSE_TEXT }
|
|
select cast('2023-01-01' as Float32); -- { serverError CANNOT_PARSE_TEXT }
|
|
select toFloat32('2023-01-01'); -- { serverError CANNOT_PARSE_TEXT }
|
|
select toFloat64('2023-01-01'); -- { serverError CANNOT_PARSE_TEXT }
|
|
select toFloat32OrZero('2023-01-01');
|
|
select toFloat64OrZero('2023-01-01');
|
|
select toFloat32OrNull('2023-01-01');
|
|
select toFloat64OrNull('2023-01-01');
|