Yaguang Jia created KYLIN-5691:
----------------------------------

             Summary: 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-alpha
            Reporter: Yaguang Jia
             Fix For: 5.0-beta


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)

Reply via email to