You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ni...@apache.org on 2019/12/08 13:08:39 UTC

[kylin] branch master updated: Minor, disable spark engine for real time cube

This is an automated email from the ASF dual-hosted git repository.

nic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new f4e62c7  Minor, disable spark engine for real time cube
f4e62c7 is described below

commit f4e62c7ae7a037b98df1a48d86304e7e0d1bde1e
Author: nichunen <ni...@apache.org>
AuthorDate: Sun Dec 8 21:05:22 2019 +0800

    Minor, disable spark engine for real time cube
---
 webapp/app/js/controllers/cubeAdvanceSetting.js         | 4 ++++
 webapp/app/partials/cubeDesigner/advanced_settings.html | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/webapp/app/js/controllers/cubeAdvanceSetting.js b/webapp/app/js/controllers/cubeAdvanceSetting.js
index 08cd044..1b7bcd1 100755
--- a/webapp/app/js/controllers/cubeAdvanceSetting.js
+++ b/webapp/app/js/controllers/cubeAdvanceSetting.js
@@ -523,5 +523,9 @@ KylinApp.controller('CubeAdvanceSettingCtrl', function ($scope, $modal,cubeConfi
     return cubeLookups;
   };
 
+  $scope.isAvailableEngine = function(engine_type) {
+    return !($scope.cubeMetaFrame.storage_type === 3 && engine_type.value === 4);
+  }
+
   $scope.cubeLookups = $scope.getCubeLookups();
 });
diff --git a/webapp/app/partials/cubeDesigner/advanced_settings.html b/webapp/app/partials/cubeDesigner/advanced_settings.html
index 8a5e0dc..5a65e5b 100755
--- a/webapp/app/partials/cubeDesigner/advanced_settings.html
+++ b/webapp/app/partials/cubeDesigner/advanced_settings.html
@@ -377,7 +377,7 @@
               <select style="width: 100%" chosen
                       ng-model="cubeMetaFrame.engine_type"
                       ng-if="state.mode=='edit'"
-                      ng-options="et.value as et.name for et in cubeConfig.engineType">
+                      ng-options="et.value as et.name for et in cubeConfig.engineType | filter: isAvailableEngine">
                 <option value="">--Select Engine Type--</option>
               </select>
               <span ng-if="state.mode=='view'&&cubeMetaFrame.engine_type==2">MapReduce</span>