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

Join Logical error: 'Bad cast from type DB::ColumnLowCardinality to DB::ColumnString #23351

Closed
vdimir opened this issue Apr 20, 2021 · 2 comments · Fixed by #24061
Closed

Join Logical error: 'Bad cast from type DB::ColumnLowCardinality to DB::ColumnString #23351

vdimir opened this issue Apr 20, 2021 · 2 comments · Fixed by #24061
Assignees
Labels
bug Confirmed user-visible misbehaviour in official release fuzz Problem found by one of the fuzzers

Comments

@vdimir
Copy link
Member

vdimir commented Apr 20, 2021

Describe the bug
Logical error: 'Bad cast from type DB::ColumnLowCardinality to DB::ColumnString'. in JOIN

https://clickhouse-test-reports.s3.yandex.net/23237/67e427c13aa2b9857c697726251d1e27af4fa1d9/fuzzer_debug/report.html#fail1

DROP TABLE IF EXISTS l_lc;
DROP TABLE IF EXISTS r;

CREATE TABLE l_lc (`x` UInt32, `lc` LowCardinality(String)) ENGINE = Memory;
CREATE TABLE r (x UInt32, lc String) ENGINE = Memory;

INSERT INTO r VALUES (0, 'str');
INSERT INTO l_lc VALUES (0, 'str');

SELECT r.lc, toTypeName(l.lc), materialize(r.lc), toTypeName(materialize(r.lc)) FROM l_lc AS l RIGHT JOIN r USING (lc);
@vdimir vdimir added bug Confirmed user-visible misbehaviour in official release fuzz Problem found by one of the fuzzers labels Apr 20, 2021
@vdimir vdimir self-assigned this Apr 20, 2021
@vdimir
Copy link
Member Author

vdimir commented Apr 20, 2021

Started to reproduce since 9d62842

@vdimir
Copy link
Member Author

vdimir commented May 14, 2021

Connected, but cause segfault

CREATE TABLE lc (`x` UInt32, `key` LowCardinality(String)) ENGINE = TinyLog;
CREATE TABLE rr (`x` UInt32, `key` String) ENGINE = TinyLog;

SELECT lowCardinalityKeys(lc.key) FROM rr FULL JOIN lc as lc USING (key);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

1 participant