Skip to content

Inconsistent formatting for function not() #89924

@thevar1able

Description

@thevar1able
:) select count() from numbers((not toDecimal128('0.0', 0) LIKE 'like'), 0)

SELECT count()
FROM numbers(NOT (toDecimal128('0.0', 0) LIKE 'like'), 0)

Query id: 344be205-9cf6-4be5-9c42-157f245aabad

2025.11.12 14:35:42.702118 [ 147289 ] {344be205-9cf6-4be5-9c42-157f245aabad} <Fatal> : Logical error: 'Inconsistent AST formatting: the query:
select count() from numbers((not toDecimal128('0.0', 0) LIKE 'like'), 0)
Formatted as:
SELECT count() FROM numbers(NOT (toDecimal128('0.0', 0) LIKE 'like'), 0)
Was parsed and formatted back as:
SELECT count() FROM numbers(not(toDecimal128('0.0', 0) LIKE 'like'), 0)'.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=66315&sha=latest&name_0=PR&name_1=BuzzHouse+%28amd_debug%29

Metadata

Metadata

Assignees

Labels

crash-cifuzzProblem found by one of the fuzzers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions