You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-11-03 17:13:17 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			62 lines
		
	
	
		
			939 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			939 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
USE tpch1;
 | 
						|
drop table if exists bug2876;
 | 
						|
create table bug2876(c1 int, c2 varchar(117))engine=columnstore;
 | 
						|
insert into bug2876 values (1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3);
 | 
						|
insert into bug2876 values (1, null), (2, null), (3, null), (null, 1), (null, 2), (null, 3), (null, null);
 | 
						|
select * from bug2876 where c1 = c2 order by 1, 2;
 | 
						|
c1	c2
 | 
						|
1	1
 | 
						|
2	2
 | 
						|
3	3
 | 
						|
select * from bug2876 where c1 != c2 order by 1, 2;
 | 
						|
c1	c2
 | 
						|
1	2
 | 
						|
1	3
 | 
						|
2	1
 | 
						|
2	3
 | 
						|
3	1
 | 
						|
3	2
 | 
						|
select * from bug2876 where c1 < c2 order by 1, 2;
 | 
						|
c1	c2
 | 
						|
1	2
 | 
						|
1	3
 | 
						|
2	3
 | 
						|
select * from bug2876 where c1 > c2 order by 1, 2;
 | 
						|
c1	c2
 | 
						|
2	1
 | 
						|
3	1
 | 
						|
3	2
 | 
						|
select * from bug2876 where c1 <= c2 order by 1, 2;
 | 
						|
c1	c2
 | 
						|
1	1
 | 
						|
1	2
 | 
						|
1	3
 | 
						|
2	2
 | 
						|
2	3
 | 
						|
3	3
 | 
						|
select * from bug2876 where c1 >= c2 order by 1, 2;
 | 
						|
c1	c2
 | 
						|
1	1
 | 
						|
2	1
 | 
						|
2	2
 | 
						|
3	1
 | 
						|
3	2
 | 
						|
3	3
 | 
						|
delete from bug2876 where c1 = c2;
 | 
						|
select * from bug2876 order by 1, 2;
 | 
						|
c1	c2
 | 
						|
NULL	NULL
 | 
						|
NULL	1
 | 
						|
NULL	2
 | 
						|
NULL	3
 | 
						|
1	NULL
 | 
						|
1	2
 | 
						|
1	3
 | 
						|
2	NULL
 | 
						|
2	1
 | 
						|
2	3
 | 
						|
3	NULL
 | 
						|
3	1
 | 
						|
3	2
 | 
						|
drop table bug2876;
 |