Details
-
New Feature
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
23.10, 22.08.8, 23.02.3
-
None
-
None
-
None
Description
to reprodcue
create table if not exists c1 (id varchar(50)) engine=Columnstore DEFAULT CHARSET=utf8mb4; |
create table if not exists c2 (id varchar(50)) engine=Columnstore DEFAULT CHARSET=utf8mb4; |
|
create table if not exists i1 (id varchar(50)) engine=Innodb DEFAULT CHARSET=utf8mb4; |
create table if not exists i2 (id varchar(50)) engine=Innodb DEFAULT CHARSET=utf8mb4; |
|
|
insert into c1 (id) values(1),(2),(3),(4); |
insert into c2 (id) values(3),(4),(5),(6); |
|
insert into i1 (id) values(1),(2),(3),(4); |
insert into i2 (id) values(3),(4),(5),(6); |
|
select count(*) from
|
(
|
select id from c1 intersect
|
select id from c2
|
) a;
|
|
|
select count(*) from
|
(
|
select id from i1 intersect
|
select id from i2
|
) a;
|
MariaDB [d1]> select count(*) from
|
-> (
|
-> select id from c1 intersect
|
-> select id from c2
|
-> ) a;
|
+----------+
|
| count(*) |
|
+----------+
|
| 6 | |
+----------+
|
1 row in set (1.074 sec) |
|
MariaDB [d1]> select count(*) from
|
-> (
|
-> select id from i1 intersect
|
-> select id from i2
|
-> ) a;
|
+----------+
|
| count(*) |
|
+----------+
|
| 2 | |
+----------+
|
1 row in set (0.000 sec) |
Attachments
Issue Links
- relates to
-
MCOL-5699 CS return error for intersect
- Closed