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 
			
		
		
		
	
		
			
				
	
	
		
			64 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
--source ../include/have_columnstore.inc
 | 
						|
 | 
						|
--disable_warnings
 | 
						|
DROP DATABASE IF EXISTS test_invalid_args;
 | 
						|
CREATE DATABASE test_invalid_args;
 | 
						|
USE test_invalid_args;
 | 
						|
--enable_warnings
 | 
						|
 | 
						|
create table cs1(i bigint)engine=columnstore;
 | 
						|
 | 
						|
# incorrect args - idbpartition must receive column name and it received a string literal
 | 
						|
--source ../include/functions.inc
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbPartition('i') = '0.0.1';
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbPartition(1) = '0.0.1';
 | 
						|
 | 
						|
#correct params
 | 
						|
select count(i) from cs1 where idbPartition(i) = '0.0.1';
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbExtentMin('i') = '0.0.1';
 | 
						|
 | 
						|
#--error 1815
 | 
						|
#select count(i) from cs1 where idbExtentMin(i) = '0.0.1';
 | 
						|
 | 
						|
#correct params
 | 
						|
#select count(i) from cs1 where idbExtentMin(1) = '0.0.1';
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbExtentRelativeRid('i') = '0.0.1';
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbExtentRelativeRid(3) = '0.0.1';
 | 
						|
 | 
						|
#correct params
 | 
						|
select count(i) from cs1 where idbExtentRelativeRid(i);
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbPm('i') = '0.0.1';
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbPm(10) = '0.0.1';
 | 
						|
 | 
						|
#correct params
 | 
						|
select count(i) from cs1 where idbPm(i);
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbSegmentDir('i') = '0.0.1';
 | 
						|
 | 
						|
--error 1815
 | 
						|
select count(i) from cs1 where idbSegmentDir(1) = '0.0.1';
 | 
						|
 | 
						|
#correct params
 | 
						|
select count(i) from cs1 where idbSegmentDir(i);
 | 
						|
 | 
						|
 | 
						|
 | 
						|
--source ../include/drop_functions.inc
 | 
						|
 | 
						|
# Clean UP
 | 
						|
DROP DATABASE test_invalid_args;
 |