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 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# -------------------------------------------------------------- #
 | 
						|
# Test case migrated from regression test suite: bug4509.sql
 | 
						|
#
 | 
						|
# Author: Daniel Lee, daniel.lee@mariadb.com
 | 
						|
# -------------------------------------------------------------- #
 | 
						|
#
 | 
						|
--source ../include/have_columnstore.inc
 | 
						|
#
 | 
						|
USE tpch1;
 | 
						|
#
 | 
						|
# -------------------------------------------------------------- #
 | 
						|
# Enable cross engine join
 | 
						|
# Configure user and password in Columnstore.xml file
 | 
						|
# -------------------------------------------------------------- #
 | 
						|
--exec /usr/bin/mcsSetConfig CrossEngineSupport User 'cejuser'
 | 
						|
--exec /usr/bin/mcsSetConfig CrossEngineSupport Password 'Vagrant1!0000001'
 | 
						|
# -------------------------------------------------------------- #
 | 
						|
# Create corresponding in the server
 | 
						|
# -------------------------------------------------------------- #
 | 
						|
 | 
						|
--disable_warnings
 | 
						|
CREATE USER IF NOT EXISTS'cejuser'@'localhost' IDENTIFIED BY 'Vagrant1!0000001';
 | 
						|
--enable_warnings
 | 
						|
 | 
						|
GRANT ALL PRIVILEGES ON *.* TO 'cejuser'@'localhost';
 | 
						|
FLUSH PRIVILEGES;
 | 
						|
#
 | 
						|
create table if not exists bug4509 (id int, c1 int)engine=columnstore;
 | 
						|
create table if not exists bug4509_myisam (id int, c1 int);
 | 
						|
insert into bug4509 values (1,2),(2,3),(3,4);
 | 
						|
insert into bug4509_myisam values (1,2),(2,4),(3,4);
 | 
						|
select * from bug4509 join bug4509_myisam using (id);
 | 
						|
select * from bug4509_myisam join bug4509 using (c1, id);
 | 
						|
 | 
						|
--disable_warnings
 | 
						|
drop table bug4509;
 | 
						|
drop table bug4509_myisam;
 | 
						|
--enable_warnings
 | 
						|
#
 | 
						|
DROP USER 'cejuser'@'localhost';
 |