[MCOL-1794] crossjoin without result , if datatype decimal is exact decimal(18,0) Created: 2018-10-12  Updated: 2023-10-25  Resolved: 2023-10-25

Status: Closed
Project: MariaDB ColumnStore
Component/s: DMLProc
Affects Version/s: 1.1.6
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Richard Stracke Assignee: Kirill Perov
Resolution: Won't Fix Votes: 2
Labels: None
Environment:

Debian 9 , Columnstore 1.1.6



 Description   

Crossjoin gives no results back, if datatype in the innodbtable is exact decimal (18,0)

Works with decimal (17,0) and decimal(19,0)
Testcase:

drop table if exists `d1`;
drop table if exists `d2`;
 
 CREATE TABLE `d1` (
  `dec18` decimal(18,0) DEFAULT -1
) ENGINE=InnoDB DEFAULT CHARSET=latin1
;
 
 CREATE TABLE `d2` (
  `dec18` decimal(18,0) DEFAULT -1
) ENGINE=Columnstore DEFAULT CHARSET=latin1 
;
 
INSERT INTO `d1` (`dec18`) VALUES (5);
INSERT INTO `d2` (`dec18`) VALUES (5);
 
select d1.dec18,d2.dec18 from d1,d2 where d1.dec18 = d2.dec18;
 
or 
 
select d1.dec18,d2.dec18 
from d1 
inner join d2
on d1.dec18 = d2.dec18;
 
 


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