[jira] [Commented] (KYLIN-3831) 唯独超过62生成cuboid 错误
[ https://issues.apache.org/jira/browse/KYLIN-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16789199#comment-16789199 ] Shaofeng SHI commented on KYLIN-3831: - The document has been updated with such a description: |Max columns in Rowkey, and it can not be more than 63| > 唯独超过62生成cuboid 错误 > - > > Key: KYLIN-3831 > URL: https://issues.apache.org/jira/browse/KYLIN-3831 > Project: Kylin > Issue Type: Wish > Components: Others >Affects Versions: v2.3.1 >Reporter: zhangwei >Assignee: zhangwei >Priority: Minor > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3831) 唯独超过62生成cuboid 错误
[ https://issues.apache.org/jira/browse/KYLIN-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16778830#comment-16778830 ] zhangwei commented on KYLIN-3831: - I agree~, if keep the original design, the value of 'kylin.cube.rowkey.max-size' shouldn't great than 63, I think this should be highlight in below guild book other user my change it to higher value and see wired exception like "Cuboid " + cuboid + " is out of scope 0-" + max) http://kylin.apache.org/docs23/install/configuration.html > 唯独超过62生成cuboid 错误 > - > > Key: KYLIN-3831 > URL: https://issues.apache.org/jira/browse/KYLIN-3831 > Project: Kylin > Issue Type: Wish > Components: Others >Affects Versions: v2.3.1 >Reporter: zhangwei >Assignee: zhangwei >Priority: Minor > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3831) 唯独超过62生成cuboid 错误
[ https://issues.apache.org/jira/browse/KYLIN-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16778043#comment-16778043 ] Billy Liu commented on KYLIN-3831: -- [~photogamrun] The limitation is by design. Kylin use the _long-length_ bits to define the dimensions. > 唯独超过62生成cuboid 错误 > - > > Key: KYLIN-3831 > URL: https://issues.apache.org/jira/browse/KYLIN-3831 > Project: Kylin > Issue Type: Wish > Components: Others >Affects Versions: v2.3.1 >Reporter: zhangwei >Assignee: zhangwei >Priority: Minor > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (KYLIN-3831) 唯独超过62生成cuboid 错误
[ https://issues.apache.org/jira/browse/KYLIN-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16777694#comment-16777694 ] zhangwei commented on KYLIN-3831: - kylin.cube.rowkey.max-size 这个参数其实不能设置超过默认的63 因为生成cuboid的算法对64位的long做位移,一旦维度过多就会算出cuboid = -1 导致无法生成cube 测试代码 public class TestBitIndex { public static void main(String[] args) { long fullMask = 0L; for (int i = 62; i >=0 ; i--) { fullMask |= 1L << i; } System.out.println(fullMask); } } 9223372036854775807 public class TestBitIndex { public static void main(String[] args) { long fullMask = 0L; for (int i = 65; i >=0 ; i--) { fullMask |= 1L << i; } System.out.println(fullMask); } } -1 DefaultCuboidScheduler @Override public List getSpanningCuboid(long cuboid) { if (cuboid > max || cuboid < 0) { throw new IllegalArgumentException("Cuboid " + cuboid + " is out of scope 0-" + max); } List spanning = parent2child.get(cuboid); if (spanning == null) { return Collections.EMPTY_LIST; } return spanning; } > 唯独超过62生成cuboid 错误 > - > > Key: KYLIN-3831 > URL: https://issues.apache.org/jira/browse/KYLIN-3831 > Project: Kylin > Issue Type: Wish > Components: Others >Affects Versions: v2.3.1 >Reporter: zhangwei >Priority: Minor > -- This message was sent by Atlassian JIRA (v7.6.3#76005)