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

Caican Cai edited comment on CALCITE-6259 at 2/17/24 2:19 PM:
--------------------------------------------------------------

[~julianhyde] How do I know what SQL dialect it uses? The only thing I know 
that expresses the SQL dialect is SqlLibrary, but how do I pass it in as a 
parameter?

I seem to have encountered some difficulties here. If you can help me solve it, 
I will be very grateful.


was (Author: JIRAUSER302115):
[~julianhyde] How do I know what SQL dialect it uses? I know that the only one 
that expresses SQL dialect is SqlLibrary

I seem to have encountered some difficulties here. If you can help me solve it, 
I will be very grateful.

> The implementation of the Log library operator does not match the actual 
> dialect behavior.
> ------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6259
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6259
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.36.0
>            Reporter: Caican Cai
>            Priority: Major
>             Fix For: 1.37.0
>
>         Attachments: 302662660-27b21670-5364-463c-b6dc-d750c46d7cd1.png, 
> 302663876-91173a60-695d-409e-b325-3f91655c6d0d.png
>
>
> The implementation of the Log library operator does not match the actual 
> dialect behavior.
> For example, when log10(0) returns null in mysql and spark, but log10(0) 
> returns error in postgres, neither is calcite's -Intity
> {code:java}
> postgres=# select log10(0);
> ERROR:  cannot take logarithm of zero
> postgres=# select log(2,0);
> ERROR:  cannot take logarithm of zero
>  {code}



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

Reply via email to