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 
			
		
		
		
	* feature: Special dictionary, we can pass with session veriable to modify codepaths and behaviour for testing and debugging
		
			
				
	
	
		
			37 lines
		
	
	
		
			804 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			804 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# Here we test the usage of columnstore_pron dictionary
 | 
						|
# Sine function has codepath checking the value of megasinus
 | 
						|
# just for exmaple. Maybe deleted after another proper usages
 | 
						|
 | 
						|
--source ../include/have_columnstore.inc
 | 
						|
 | 
						|
--disable_warnings
 | 
						|
DROP DATABASE IF EXISTS pron;
 | 
						|
--enable_warnings
 | 
						|
 | 
						|
CREATE DATABASE pron;
 | 
						|
USE pron;
 | 
						|
 | 
						|
CREATE TABLE t
 | 
						|
(
 | 
						|
 a double
 | 
						|
) ENGINE=Columnstore;
 | 
						|
 | 
						|
INSERT INTO t VALUES(1.5707963267948966);
 | 
						|
 | 
						|
SHOW variables like 'columnstore_pron';
 | 
						|
SELECT sin(a) from t;
 | 
						|
 | 
						|
SET columnstore_pron='{"megasinus": "123"}';
 | 
						|
SHOW variables like 'columnstore_pron';
 | 
						|
SELECT sin(a) from t;
 | 
						|
 | 
						|
SET columnstore_pron='{"megasinus": "-200"}';
 | 
						|
SHOW variables like 'columnstore_pron';
 | 
						|
SELECT sin(a) from t;
 | 
						|
 | 
						|
SET columnstore_pron='';
 | 
						|
SHOW variables like 'columnstore_pron';
 | 
						|
SELECT sin(a) from t;
 | 
						|
 | 
						|
DROP DATABASE pron;
 |