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

Logical error "Expected single dictionary argument for function" in materialize(toLowCardinality(...)) #61531

Closed
yakov-olkhovskiy opened this issue Mar 18, 2024 · 0 comments · Fixed by #61567
Assignees
Labels
potential bug To be reviewed by developers and confirmed/rejected.

Comments

@yakov-olkhovskiy
Copy link
Member

yakov-olkhovskiy commented Mar 18, 2024

Describe what's wrong

SELECT trunc(materialize(toLowCardinality(0)), materialize(toLowCardinality(0)));

Received exception from server (version 24.2.2):
Code: 49. DB::Exception: Received from localhost:9000. DB::Exception: Expected single dictionary argument for function.. (LOGICAL_ERROR)
(query: SELECT trunc(materialize(toLowCardinality(0)), materialize(toLowCardinality(0))))

https://fiddle.clickhouse.com/a91273fc-32a6-4735-92e1-68bf1a6fd00a

Does it reproduce on the most recent release?
yes

Expected behavior
should not produce LOGICAL_ERROR

Additional context
Found by fuzzer:
https://s3.amazonaws.com/clickhouse-test-reports/58223/be4554ba431c2c496c139e6b4869a68ca3ba58dc/ast_fuzzer__ubsan_.html

@yakov-olkhovskiy yakov-olkhovskiy added the potential bug To be reviewed by developers and confirmed/rejected. label Mar 18, 2024
@yakov-olkhovskiy yakov-olkhovskiy self-assigned this Mar 18, 2024
@vdimir vdimir changed the title LOGICAL_ERROR found by Fuzzer Logical error "Expected single dictionary argument for function" in materialize(toLowCardinality(...)) Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential bug To be reviewed by developers and confirmed/rejected.
Projects
None yet
1 participant