Uploaded image for project: 'Kylin'
  1. Kylin
  2. 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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0-alpha
    • Modeling
    • None

    Description

      复现步骤:

      表table1有 a1,a2字段

      表table2有b1,b2字段

      创建模型A

      table1.a1=table2.b1

      创建可计算列

      名称 b2 表达式 table2.b2

      选择字段后保存

      报错

      Root Cause

      此Bug产生原因是CC列列名和维度表列名一致,导致无限递归

       

      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]

      使用列全名称来进行递归

       

      Attachments

        Activity

          People

            jlelehe Jiale He
            jlelehe Jiale He
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: