You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
IN set doesn't do automatic type casting
How to reproduce
CREATE TABLE tst_in (key UInt32) ENGINE=MergeTree ORDER BY key AS SELECT number FROM numbers(1000000);
SELECT count()
FROM tst_in
WHERE key IN (
SELECT number
FROM numbers(1000)
);
Received exception from server (version 23.6.1):
Code: 53. DB::Exception: Received from localhost:9000. DB::Exception: Types of column 1 in section IN don't match: UInt32 on the left, UInt64 on the right. (TYPE_MISMATCH)
(query: SELECT count()
FROM tst_in
WHERE key IN (
SELECT number
FROM numbers(1000)
);)
If we disable index analysis it does work
SELECT count()
FROM tst_in
WHERE identity(key IN (
SELECT number
FROM numbers(1000)
));
1000
Describe the issue
IN set doesn't do automatic type casting
How to reproduce
23.6
https://fiddle.clickhouse.com/da1d7790-2140-49bf-a502-d77d1238239f
23.4
https://fiddle.clickhouse.com/28617010-1c3e-4af0-a53a-d000f0d92003
The text was updated successfully, but these errors were encountered: