You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Ma Gang (JIRA)" <ji...@apache.org> on 2018/03/27 05:55:00 UTC
[jira] [Commented] (KYLIN-3320) CubeStatsReader cannot print stats
properly for some cube
[ https://issues.apache.org/jira/browse/KYLIN-3320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16415063#comment-16415063 ]
Ma Gang commented on KYLIN-3320:
--------------------------------
attach the patch, this is caused by the code:
{code:java}
// CubeStatsReader.printCuboidInfoTree() method
List<Long> children = scheduler.getSpanningCuboid(cuboidID);
Collections.sort(children);{code}
the returned cuboid list is immutable for TreeCuboidScheduler, the Collections.sort() will cause exception.
the fix is return a copy cuboid list from the TreeCuboidScheduler
> CubeStatsReader cannot print stats properly for some cube
> ----------------------------------------------------------
>
> Key: KYLIN-3320
> URL: https://issues.apache.org/jira/browse/KYLIN-3320
> Project: Kylin
> Issue Type: Improvement
> Components: Tools, Build and Test
> Reporter: Ma Gang
> Assignee: Ma Gang
> Priority: Minor
> Attachments: fix_KYLIN-3320.patch
>
>
> For the cubes that have cuboid_bytes set in the CubeInstance, the cuboid stats cannot print properly using tool CubeStatsReader
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)