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.
		
			
				
	
	
		
			32 lines
		
	
	
		
			755 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			755 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
--source ../include/have_columnstore.inc
 | 
						|
 | 
						|
--echo #
 | 
						|
--echo # MCOL-4614 calShowPartitions() precision loss for huge narrow decimal
 | 
						|
--echo #
 | 
						|
 | 
						|
CREATE DATABASE udf_calshowpartitions;
 | 
						|
USE udf_calshowpartitions;
 | 
						|
 | 
						|
let $func_exists=`SELECT COUNT(*) FROM mysql.func WHERE name='calshowpartitions'`;
 | 
						|
--disable_query_log
 | 
						|
if (!$func_exists)
 | 
						|
{
 | 
						|
  CREATE FUNCTION calshowpartitions RETURNS STRING SONAME "ha_columnstore.so";
 | 
						|
}
 | 
						|
--enable_query_log
 | 
						|
 | 
						|
CREATE TABLE t1 (a DECIMAL(17,1)) ENGINE=ColumnStore;
 | 
						|
INSERT INTO t1 VALUES (-8999999999999999.9);
 | 
						|
SELECT * FROM t1 WHERE a=0;
 | 
						|
SELECT calshowpartitions('t1','a');
 | 
						|
DROP TABLE IF EXISTS t1;
 | 
						|
 | 
						|
--disable_query_log
 | 
						|
if (!$func_exists)
 | 
						|
{
 | 
						|
  DROP FUNCTION calshowpartitions;
 | 
						|
}
 | 
						|
--enable_query_log
 | 
						|
 | 
						|
DROP DATABASE udf_calshowpartitions;
 |