Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-5353

Failed to save model which contains computed column using functions of timestampadd or timestampdiff

    XMLWordPrintableJSON

Details

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

    Description

      When saving the model containing some computed columns using functions of `timestampdiff` or `timestampadd`, it failed with throwing an exception as follows.

      This happens because `ModelSemanticHelper#discardInvalidComputedColumnsForBrokenModel` used the `innerExpression` of the computed column other than `expression`. By design, the `innerExpression` is used for spark, the expression used by calcite parser.

      Attachments

        1. kylin5.jpeg
          151 kB
          Pengfei Zhan

        Activity

          People

            pfzhan Pengfei Zhan
            pfzhan Pengfei Zhan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: