[ 
https://issues.apache.org/jira/browse/KYLIN-3457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549006#comment-16549006
 ] 

ASF GitHub Bot commented on KYLIN-3457:
---------------------------------------

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:
[email protected]


> Distribute by multi column if not set distribute column during the 
> redistribute step
> ------------------------------------------------------------------------------------
>
>                 Key: KYLIN-3457
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3457
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Job Engine
>            Reporter: Chao Long
>            Assignee: Chao Long
>            Priority: Major
>             Fix For: v2.5.0
>
>
> KYLIN-3388 remove redistribute step may cause a data skew problem。



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to