Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyzer: Bad cast from type DB::FunctionNode to DB::ColumnNode. (LOGICAL_ERROR) #63640

Closed
al13n321 opened this issue May 10, 2024 · 0 comments · Fixed by #63744
Closed

Analyzer: Bad cast from type DB::FunctionNode to DB::ColumnNode. (LOGICAL_ERROR) #63640

al13n321 opened this issue May 10, 2024 · 0 comments · Fixed by #63744
Assignees
Labels
analyzer Issues and pull-requests related to new analyzer bug Confirmed user-visible misbehaviour in official release fuzz Problem found by one of the fuzzers

Comments

@al13n321
Copy link
Member

Analyzer found this:

SELECT arrayFilter(x -> notEmpty(concat(x, 'hello')), [''])
FROM system.one
ARRAY JOIN
    [0] AS elem,
    arrayMap(x -> concat(x, ignore(ignore(toLowCardinality('03147_parquet_memory_tracking.parquet'), 37, 37, toUInt128(37), 37, 37, toLowCardinality(37), 37), 8, ignore(ignore(1., 36, 8, 8)), *), 'hello'), ['']) AS unused
WHERE NOT ignore(elem)
GROUP BY
    sum(ignore(ignore(ignore(1., 1, 36, 8, 8), ignore(52, 37, 37, '03147_parquet_memory_tracking.parquet', 37, 37, toUInt256(37), 37, 37, toNullable(37), 37, 37), 1., 1, 36, 8, 8), emptyArrayToSingle(arrayMap(x -> toString(x), arrayMap(x -> nullIf(x, 2), arrayJoin([[1]])))))) IGNORE NULLS,
    modulo(toLowCardinality('03147_parquet_memory_tracking.parquet'), number, toLowCardinality(3))

Query id: 912eb23a-8a1e-40cb-91db-3bd74113d1f9


Elapsed: 0.002 sec. 

Received exception from server (version 24.5.1):
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Bad cast from type DB::ConstantNode to DB::ColumnNode. (LOGICAL_ERROR)

Simplified query that fails with a slightly different error (may or may not be the same root cause):

SELECT 1
FROM system.one
ARRAY JOIN arrayMap(x -> ignore(*), [])

Query id: d3c27a87-cc8f-4e8c-a99b-8dfc5382a960


Elapsed: 0.001 sec. 

Received exception from server (version 24.5.1):
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Bad cast from type DB::FunctionNode to DB::ColumnNode. (LOGICAL_ERROR)
@al13n321 al13n321 added bug Confirmed user-visible misbehaviour in official release fuzz Problem found by one of the fuzzers analyzer Issues and pull-requests related to new analyzer labels May 10, 2024
@KochetovNicolai KochetovNicolai self-assigned this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer Issues and pull-requests related to new analyzer bug Confirmed user-visible misbehaviour in official release fuzz Problem found by one of the fuzzers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants