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

Prewhere: Bad cast from type DB::ColumnNullable to DB::ColumnLowCardinality #64172

Closed
Algunenano opened this issue May 20, 2024 · 0 comments · Fixed by #64388
Closed

Prewhere: Bad cast from type DB::ColumnNullable to DB::ColumnLowCardinality #64172

Algunenano opened this issue May 20, 2024 · 0 comments · Fixed by #64388
Assignees
Labels
analyzer Issues and pull-requests related to new analyzer fuzz Problem found by one of the fuzzers

Comments

@Algunenano
Copy link
Member

Describe the bug
https://s3.amazonaws.com/clickhouse-test-reports/0/2450eb993229d127d6006d92bd5919d2352f19cb/ast_fuzzer__ubsan_.html

How to reproduce

CREATE TABLE merge_tree_table1 (`s` LowCardinality(String), `x` UInt32) ENGINE = MergeTree ORDER BY x SETTINGS index_granularity = 1;

CREATE TABLE buffer_table1__fuzz_24 (`s` Nullable(Int128), `x` Nullable(FixedString(17))) ENGINE = Buffer(currentDatabase(), 'merge_tree_table1', 16, 10, 60, 10, 1000, 1048576, 2097152);

SELECT s FROM buffer_table1__fuzz_24 PREWHERE factorial(toNullable(10))
2024.05.20 20:58:38.020550 [ 395287 ] {ea80d8c2-0e0c-4a23-b942-1a0366a3e515} <Fatal> : Logical error: 'Bad cast from type DB::ColumnNullable to DB::ColumnLowCardinality'.

Backtrace from ch local: https://pastila.nl/?0006a671/66f68d2874c5bc5a7442763566bb3b0b#aDb6JD5VXiIulj7aDBX6Ew==

Works fine in the old interpreter (throws ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER)

@Algunenano Algunenano added fuzz Problem found by one of the fuzzers analyzer Issues and pull-requests related to new analyzer labels May 20, 2024
@KochetovNicolai KochetovNicolai self-assigned this May 24, 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 fuzz Problem found by one of the fuzzers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants