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

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

Commit 466263216e1007156438c719c54feab67c907aff in kylin's branch 
refs/heads/kylin5 from Dorris Zhang
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=466263216e ]

KYLIN-5353 fix model saving failure when there are CCs of 
timestampdiff/timestampadd function

from 39687

Co-authored-by: Dorris Zhang <[email protected]>


> Failed to save model which contains computed column using functions of 
> timestampadd or timestampdiff 
> -----------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5353
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5353
>             Project: Kylin
>          Issue Type: Bug
>          Components: Modeling
>    Affects Versions: 5.0-alpha
>            Reporter: pengfei.zhan
>            Assignee: pengfei.zhan
>            Priority: Major
>             Fix For: 5.0-alpha
>
>         Attachments: kylin5.jpeg
>
>
> When saving the model containing some computed columns using functions of 
> `timestampdiff` or `timestampadd`, it failed with throwing an exception as 
> follows.
> !kylin5.jpeg!
> 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.



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

Reply via email to