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 
			
		
		
		
	This patch improves handling of NULLs in textual fields in ColumnStore. Previously empty strings were considered NULLs and it could be a problem if data scheme allows for empty strings. It was also one of major reasons of behavior difference between ColumnStore and other engines in MariaDB family. Also, this patch fixes some other bugs and incorrect behavior, for example, incorrect comparison for "column <= ''" which evaluates to constant True for all purposes before this patch.
		
			
				
	
	
		
			23 lines
		
	
	
		
			596 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			596 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# Test Variance functions
 | 
						|
# Author: Bharath, bharath.bokka@mariadb.com
 | 
						|
#
 | 
						|
-- source ../include/have_columnstore.inc
 | 
						|
 | 
						|
--disable_warnings
 | 
						|
DROP DATABASE IF EXISTS mcs95_db;
 | 
						|
--enable_warnings
 | 
						|
 | 
						|
CREATE DATABASE mcs95_db;
 | 
						|
USE mcs95_db;
 | 
						|
 | 
						|
CREATE TABLE t1 (a CHAR(1), b INT)ENGINE=Columnstore;
 | 
						|
INSERT INTO t1 VALUES (NULL, NULL),('a', 12),('a', 13),('b', 14),('c', 15),('d', 16),('d', 17),('b', 18),('a', 19);
 | 
						|
 | 
						|
SELECT a, VARIANCE(b) FROM t1 GROUP BY a ORDER BY a;
 | 
						|
SELECT a, VAR_POP(b) FROM t1 GROUP BY a ORDER BY a;
 | 
						|
SELECT a, VAR_SAMP(b) FROM t1 GROUP BY a ORDER BY a;
 | 
						|
 | 
						|
# Clean UP
 | 
						|
DROP DATABASE mcs95_db;
 |