You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-30 07:25:34 +03:00 
			
		
		
		
	MCOL-6216: no QA for CS
This commit is contained in:
		| @@ -95,6 +95,14 @@ set(GNU_FLAGS # suppressed warnings | |||||||
| set(ASAN_FLAGS -U_FORTIFY_SOURCE -fsanitize=address -fsanitize-address-use-after-scope -fPIC) | set(ASAN_FLAGS -U_FORTIFY_SOURCE -fsanitize=address -fsanitize-address-use-after-scope -fPIC) | ||||||
| # } end Sanitizers | # } end Sanitizers | ||||||
|  |  | ||||||
|  | # Check if built with enterprise configuration | ||||||
|  | if(MYSQL_SERVER_SUFFIX STREQUAL "-enterprise") | ||||||
|  |     message(STATUS "ColumnStore: Compiling with ENTERPRISE features enabled") | ||||||
|  |     my_check_and_set_compiler_flag("-DCOLUMNSTORE_COMPILED_WITH_ENTERPRISE") | ||||||
|  | else() | ||||||
|  |     message(STATUS "ColumnStore: Compiling with COMMUNITY features") | ||||||
|  | endif() | ||||||
|  |  | ||||||
| # configured by cmake/configureEngine.cmake { | # configured by cmake/configureEngine.cmake { | ||||||
| if(MASK_LONGDOUBLE) | if(MASK_LONGDOUBLE) | ||||||
|     my_check_and_set_compiler_flag("-DMASK_LONGDOUBLE") |     my_check_and_set_compiler_flag("-DMASK_LONGDOUBLE") | ||||||
|   | |||||||
| @@ -76,15 +76,27 @@ bool optimizeCSEPWithRules(execplan::CalpontSelectExecutionPlan& root, const std | |||||||
|   return changed; |   return changed; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | bool isEnterprise() | ||||||
|  | { | ||||||
|  | #ifdef COLUMNSTORE_COMPILED_WITH_ENTERPRISE | ||||||
|  |   return true; | ||||||
|  | #else | ||||||
|  |   return false; | ||||||
|  | #endif | ||||||
|  | } | ||||||
|  |  | ||||||
| // high level API call for optimizer | // high level API call for optimizer | ||||||
| bool optimizeCSEP(execplan::CalpontSelectExecutionPlan& root, optimizer::RBOptimizerContext& ctx, | bool optimizeCSEP(execplan::CalpontSelectExecutionPlan& root, optimizer::RBOptimizerContext& ctx, | ||||||
|                   bool useUnstableOptimizer) |                   bool useUnstableOptimizer) | ||||||
| { | { | ||||||
|   std::vector<optimizer::Rule> rules; |   std::vector<optimizer::Rule> rules; | ||||||
|   if (useUnstableOptimizer) |   if (useUnstableOptimizer) | ||||||
|  |   { | ||||||
|  |     if (isEnterprise()) | ||||||
|     { |     { | ||||||
|       optimizer::Rule parallelCES{"parallel_ces", optimizer::parallelCESFilter, optimizer::applyParallelCES}; |       optimizer::Rule parallelCES{"parallel_ces", optimizer::parallelCESFilter, optimizer::applyParallelCES}; | ||||||
|       rules.push_back(parallelCES); |       rules.push_back(parallelCES); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     optimizer::Rule rewriteDistinct{"rewrite_distinct", optimizer::rewriteDistinctFilter, |     optimizer::Rule rewriteDistinct{"rewrite_distinct", optimizer::rewriteDistinctFilter, | ||||||
|                                     optimizer::applyRewriteDistinct}; |                                     optimizer::applyRewriteDistinct}; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user