Skip to content

Parsing error for small Float64 literals in scientific notation #78903

@rienath

Description

@rienath

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)

Metadata

Metadata

Assignees

Labels

bugConfirmed user-visible misbehaviour in official release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions