[MCOL-5516] cross engine joins between innob and columnstore between views throws Internal error: MCS-1000: 'view_on_CS_tables_and_InnoDB_tables' and 'InnoDB2' are not joined. Created: 2023-06-20  Updated: 2024-01-24

Status: Open
Project: MariaDB ColumnStore
Component/s: Columnstore Select Handler
Affects Version/s: 23.10, 23.02.4, 23.10.0
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Richard Stracke Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: cross-engine, views


 Description   

To reproduce

drop table if exists CS1;
create table CS1
( 
ID int,
someText varchar(100),
FK int
) 
ENGINE=Columnstore;
 
drop table if exists CS2;
create table CS2
( 
ID int,
someText varchar(100)
) 
ENGINE=Columnstore;
 
drop table if exists InnoDB2;
create table InnoDB2
( 
ID int,
someText varchar(100)
) 
ENGINE=InnoDB;
 
select CS1.ID, CS2.someText
from CS1
join CS2 on CS1.FK = CS2.ID;
 
select CS1.ID, InnoDB2.someText
from CS1
join InnoDB2 on CS1.FK = InnoDB2.ID;
-- works!!!
 
drop view if exists view_on_CS_tables;
create view view_on_CS_tables as 
select CS1.ID, CS2.someText
from CS1
left outer join CS2 on CS1.FK = CS2.ID;
 
select count(*) from view_on_CS_tables;
 
drop view if exists view_on_CS_and_InnoDB_tables;
create view view_on_CS_tables_and_InnoDB_tables as 
select CS1.ID, InnoDB2.someText
from CS1
left outer join InnoDB2 on CS1.FK = InnoDB2.ID;
 
select count(*) from view_on_CS_tables; -- works
 
select count(*) from view_on_CS_tables_and_InnoDB_tables;
-- Error Code: 1815. Internal error: IDB-1000: 'view_on_cs_tables_and_innodb_tables' and 'innodb2' are not joined.	

Works with
set columnstore_select_handler = 0;


Generated at Thu Feb 08 02:58:27 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.