[ https://issues.apache.org/jira/browse/KYLIN-5691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762638#comment-17762638 ]
ASF subversion and git services commented on KYLIN-5691: -------------------------------------------------------- Commit 779bc03ed9b75a26d9bf8d3d40fb7ca98d54ec9a in kylin's branch refs/heads/kylin5 from liang.huang [ https://gitbox.apache.org/repos/asf?p=kylin.git;h=779bc03ed9 ] KYLIN-5691 make KYLIN5 date udfs hold string args > Kylin5 datediff function supports cases where the parameter is a string. > ------------------------------------------------------------------------ > > Key: KYLIN-5691 > URL: https://issues.apache.org/jira/browse/KYLIN-5691 > Project: Kylin > Issue Type: Improvement > Components: Query Engine > Affects Versions: 5.0-beta > Reporter: Yaguang Jia > Assignee: Yaguang Jia > Priority: Minor > Fix For: 5.0.0 > > > h2. Design > Previously datediff only supported calls where both parameters were of type > date, such as select datediff(date'2023-05-01', date'2023-05-02') > Now it has been extended to also support date strings where both arguments > are in ''yyyy-MM-dd'' format, such as select datediff('2023-05-01', > '2023-05-02' ) > > ---- > > 之前datediff只支持两个参数都为date类型的调用,如 select datediff(date'2023-05-01', > date'2023-05-02') > 现在做了扩展,也可以支持两个参数都为‘‘yyyy-MM-dd’’格式的日期字符串,如select datediff('2023-05-01', > '2023-05-02') -- This message was sent by Atlassian Jira (v8.20.10#820010)