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

Yang Hao commented on KYLIN-2974:
---------------------------------

The method isOnTree may satisfy it

{code:java}
    public boolean isOnTree(long cuboidID) {
        if (cuboidID <= 0) {
            return false; //cuboid must be greater than 0
        }
        if ((cuboidID & ~partialCubeFullMask) != 0) {
            return false; //a cuboid's parent within agg is at most 
partialCubeFullMask
        }

        return checkMandatoryColumns(cuboidID) && checkHierarchy(cuboidID) && 
checkJoint(cuboidID);
    }
{code}


> joint group is Null lead to query error
> ---------------------------------------
>
>                 Key: KYLIN-2974
>                 URL: https://issues.apache.org/jira/browse/KYLIN-2974
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine
>    Affects Versions: v2.1.0
>            Reporter: Yang Hao
>            Assignee: Yang Hao
>         Attachments: KYLIN-2974.patch
>
>
> When query a sql, it turns to find all possible aggregation group. But it may 
> cause error when the joint group is empty. Relevant code is
> {code:java}
> cuboidID = cuboidID | Collections.min(agg.getJoints(), 
> cuboidSelectComparator);
> {code}
> In our env, when we have multiple aggregation groups, it may trigger the error



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to