You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Jiale He (Jira)" <ji...@apache.org> on 2022/12/01 08:04:00 UTC

[jira] [Created] (KYLIN-5316) If there is 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

Jiale He created KYLIN-5316:
-------------------------------

             Summary: If there is 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
             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)