This is an automated email from the ASF dual-hosted git repository.
xxyu pushed a commit to branch kylin3
in repository https://gitbox.apache.org/repos/asf/kylin.git
The following commit(s) were added to refs/heads/kylin3 by this push:
new 9e2250f Fix the bug of CubeDesc can't be update
9e2250f is described below
commit 9e2250ff88b60795008d283e873133c5c77cb993
Author: yaqian.zhang <[email protected]>
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 98788d8..94d4431 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");