You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/12/05 10:21:00 UTC

[jira] [Commented] (KYLIN-5316) If a CC with the same name as the column in the model dimension, the model under the project that has a reference relationship with the CC column cannot be created or modified

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

ASF subversion and git services commented on KYLIN-5316:
--------------------------------------------------------

Commit 6836fba58026aaa913808259facc13863e83f17d in kylin's branch refs/heads/kylin5 from Shuai li
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=6836fba580 ]

KYLIN-5316 fix stackOverflowError when cc colmun name equals dimension name


> If a CC with the same name as the column in the model dimension, the model under the project that has a reference relationship with the CC column cannot be created or modified
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5316
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5316
>             Project: Kylin
>          Issue Type: Bug
>          Components: Modeling
>            Reporter: Jiale He
>            Priority: Major
>             Fix For: 5.0-alpha
>
>
> h1. 复现步骤:
> 表table1有 a1,a2字段
> 表table2有b1,b2字段
> 创建模型A
> table1.a1=table2.b1
> 创建可计算列
> 名称 b2 表达式 table2.b2
> 选择字段后保存
> 报错
> h1. Root Cause
> 此Bug产生原因是CC列列名和维度表列名一致,导致无限递归
>  
> h1. Fix Design
> 当前解析CC列获取引用的模型列时,将引用列放到Map中的key值为CC列列名,非全名称(column)。而解析出的模型列明为全名称,改为保持一致都是用全名称(database.table.column)来检索,可以避免切割造成列名称冲突。
> cc_name : [database.table.colum1, database.table.colum2] => 改为 database.table.cc_name : [database.table.colum1, database.table.colum2]
> 使用列全名称来进行递归
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)