You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by suibianwanwan <15...@qq.com.INVALID> on 2024/08/15 14:59:08 UTC

回复: What are the design criteria for Calcite functions

I would like to support, during the validation phase in MySQL library.


------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <mmior@apache.org&gt;;
发送时间:&nbsp;2024年8月15日(星期四) 晚上10:46
收件人:&nbsp;"dev"<dev@calcite.apache.org&gt;;

主题:&nbsp;Re: What are the design criteria for Calcite functions



suibianwanwan,

Supported in what way? When using the MySQL dialect, Calcite will generate
those functions where appropriate. However, I don't believe that the parser
supports these. Calcite does also support TO_TIMESTAMP. It would help if
you gave us a better idea of what you're trying to accomplish using Calcite.

--
Michael Mior
mmior@apache.org


On Thu, Aug 15, 2024 at 10:34 AM suibianwanwan33 <
suibianwanwan33@foxmail.com&gt; wrote:

&gt; I found that Mysql's STR_TO_DATE &amp;amp; DATE_FORMAT functions are not
&gt; supported in Calcite, I tried to understand and contribute this.
&gt; But I'm not too familiar with this part. I've found that there are some
&gt; functions that are defined as calcite default functions in StdOperator,
&gt; some that have SqlKind, and some that are defined as OtherFunction. Of
&gt; course, there are also a lot of functions that are not supported. I would
&gt; like to know how we can distinguish these behaviors.
&gt; For example, what kind of functions should we define as calcite default
&gt; functions, I observed that calcite doesn't have a function like
&gt; to_timestamp, is this missing in the calcite standard?. And what functions
&gt; should we add to calcite?
&gt; Also, I'm wondering if this contribution is meaningful to calcite.
&gt;
&gt;
&gt; Thanks for all the replies
&gt;
&gt;
&gt;
&gt; Thanks,
&gt; suibianwanwan