You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by GitBox <gi...@apache.org> on 2018/07/19 08:43:39 UTC

[GitHub] shaofengshi closed pull request #170: KYLIN-3457 use cube level config

shaofengshi closed pull request #170: KYLIN-3457 use cube level config
URL: https://github.com/apache/kylin/pull/170
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/core-job/src/main/java/org/apache/kylin/job/JoinedFlatTable.java b/core-job/src/main/java/org/apache/kylin/job/JoinedFlatTable.java
index 392323e2c1..ea07835416 100644
--- a/core-job/src/main/java/org/apache/kylin/job/JoinedFlatTable.java
+++ b/core-job/src/main/java/org/apache/kylin/job/JoinedFlatTable.java
@@ -270,7 +270,7 @@ public static String generateRedistributeFlatTableStatement(IJoinedFlatTableDesc
         } else if (flatDesc.getDistributedBy() != null) {
             appendDistributeStatement(sql, Lists.newArrayList(flatDesc.getDistributedBy()));
         } else {
-            int redistColumnCount = KylinConfig.getInstanceFromEnv().getHiveRedistributeColumnCount();
+            int redistColumnCount = cubeDesc.getConfig().getHiveRedistributeColumnCount();
 
             RowKeyColDesc[] rowKeyColDescs = cubeDesc.getRowkey().getRowKeyColumns();
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services