You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-31 18:30:33 +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>
		
			
				
	
	
		
			31 lines
		
	
	
		
			1005 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1005 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # -------------------------------------------------------------- #
 | |
| # Test case migrated from regression test suite: bug4757.sql
 | |
| #
 | |
| # Author: Daniel Lee, daniel.lee@mariadb.com
 | |
| # -------------------------------------------------------------- #
 | |
| #
 | |
| --source ../include/have_columnstore.inc
 | |
| #
 | |
| 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;
 | |
| 
 | |
| 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 ;
 | |
| 
 | |
| #
 | |
| 
 |