Company or project name
ClickHouse
Describe what's wrong
Very small floating-point literals fail to parse when written in scientific notation. For example, 4.94066e-3 and 4.94066e-32 work fine, but 4.94066e-324 causes a syntax error. This seems to be a parsing issue as the value is a valid Float64.
Does it reproduce on the most recent release?
Yes
How to reproduce
SELECT 4.94066e-3; -- works
SELECT 4.94066e-32; -- works
SELECT 4.94066e-324; -- throws
Link to reproduce.
Expected behavior
The last query should return a very small Float64 value without triggering an error.
Error message and/or stacktrace
Code: 62. DB::Exception: Syntax error: failed at position 20 (end of query): ;. Expected one of: token, DoubleColon. (SYNTAX_ERROR)
Company or project name
ClickHouse
Describe what's wrong
Very small floating-point literals fail to parse when written in scientific notation. For example,
4.94066e-3and4.94066e-32work fine, but4.94066e-324causes a syntax error. This seems to be a parsing issue as the value is a valid Float64.Does it reproduce on the most recent release?
Yes
How to reproduce
SELECT 4.94066e-3; -- worksSELECT 4.94066e-32; -- worksSELECT 4.94066e-324; -- throwsLink to reproduce.
Expected behavior
The last query should return a very small
Float64value without triggering an error.Error message and/or stacktrace
Code: 62. DB::Exception: Syntax error: failed at position 20 (end of query): ;. Expected one of: token, DoubleColon. (SYNTAX_ERROR)