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 
			
		
		
		
	* Restructured test suites and added autopilot and extended suites * Updated autopilot with correct branch - develop * Moved setup test case to a 'setup' directory, for consistency * Fixed a path issue * Updated some tests cases to keep up with development Co-authored-by: root <root@rocky8.localdomain>
		
			
				
	
	
		
			30 lines
		
	
	
		
			859 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			859 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
USE tpch1;
 | 
						|
SELECT PS_SUPPKEY, ps_partkey      FROM PARTSUPP WHERE      PS_AVAILQTY
 | 
						|
> ( SELECT 0.5 * sum(L_QUANTITY)      FROM LINEITEM WHERE  l_partkey in (select
 | 
						|
p_partkey from part where p_partkey in (145018, 160005)) and L_PARTKEY =
 | 
						|
PS_PARTKEY) order by 1,2;
 | 
						|
PS_SUPPKEY	ps_partkey
 | 
						|
6	160005
 | 
						|
47	145018
 | 
						|
2522	160005
 | 
						|
2561	145018
 | 
						|
5019	145018
 | 
						|
5038	160005
 | 
						|
7533	145018
 | 
						|
7554	160005
 | 
						|
SELECT PS_SUPPKEY, ps_partkey
 | 
						|
FROM PARTSUPP WHERE
 | 
						|
PS_AVAILQTY > ( SELECT 0.5 * sum(L_QUANTITY)
 | 
						|
FROM LINEITEM WHERE
 | 
						|
l_suppkey in (6,47) and l_partkey in (145018, 160005)  and
 | 
						|
l_partkey in (SELECT P_PARTKEY FROM PART WHERE p_partkey in
 | 
						|
(145018, 160005)) and
 | 
						|
L_PARTKEY = PS_PARTKEY AND
 | 
						|
L_SUPPKEY = PS_SUPPKEY AND
 | 
						|
L_SHIPDATE >= date '1995-01-01' AND
 | 
						|
L_SHIPDATE < date '1995-01-01' + interval '1' year
 | 
						|
group by l_partkey, l_suppkey) order by 1,2 ;
 | 
						|
PS_SUPPKEY	ps_partkey
 | 
						|
6	160005
 | 
						|
47	145018
 |