zzcclp commented on a change in pull request #1523:
URL: https://github.com/apache/kylin/pull/1523#discussion_r549593562



##########
File path: 
kylin-spark-project/kylin-spark-engine/src/main/java/org/apache/kylin/engine/spark/job/NSparkExecutable.java
##########
@@ -105,7 +105,7 @@ protected ExecuteResult doWork(ExecutableContext context) 
throws ExecuteExceptio
         //context.setLogPath(getSparkDriverLogHdfsPath(context.getConfig()));
         CubeManager cubeMgr = 
CubeManager.getInstance(KylinConfig.getInstanceFromEnv());
         CubeInstance cube = cubeMgr.getCube(this.getCubeName());
-        KylinConfig config = cube.getConfig();
+        KylinConfig config = KylinConfigExt.createInstance(cube.getConfig(), 
cube.getDescriptor().getOverrideKylinProps());

Review comment:
       Don't need to create a KylinConfigExt here, the returned value of 
'cube.getConfig()' already is a KylinConfigExt object.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to