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

yaqian pushed a commit to branch kylin3-hadoop3
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit efee7f7cec1f08e6274c01037605064937c927f0
Author: yaqian.zhang <598593...@qq.com>
AuthorDate: Mon Nov 8 17:51:03 2021 +0800

    Fix the bug of CubeDesc can't be update
---
 .../src/main/java/org/apache/kylin/rest/controller/CubeController.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
 
b/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
index 2124404..677e723 100644
--- 
a/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
+++ 
b/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
@@ -870,7 +870,7 @@ public class CubeController extends BasicController {
             validateColumnFamily(desc);
 
             // check build engine for stream cube
-            if (desc.isStreamingCube()) {
+            if (cube.getDescriptor().isStreamingCube()) {
                 if (desc.getEngineType() != IEngineAware.ID_MR_V2) {
                     logger.info("streaming cube just supports MR engine");
                     throw new BadRequestException("Invalid Engine type, 
Streaming cube just supports MapReduce engine");

Reply via email to