You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Chunwei Lei (Jira)" <ji...@apache.org> on 2020/01/07 03:46:00 UTC

[jira] [Resolved] (CALCITE-3154) RelToSqlConverter generates NULLA LAST and NULLS FIRST wrongly when converting RexOver to sql using MysqlSqlDialect

     [ https://issues.apache.org/jira/browse/CALCITE-3154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chunwei Lei resolved CALCITE-3154.
----------------------------------
    Fix Version/s: 1.22.0
       Resolution: Fixed

Fixed in [40f5a0faaa4c5d974b0815ea2216d91551755e7b|https://github.com/apache/calcite/commit/40f5a0faaa4c5d974b0815ea2216d91551755e7b]. Thank you for your pr, [~winipanda]!

> RelToSqlConverter generates NULLA LAST and NULLS FIRST wrongly when converting RexOver to sql using MysqlSqlDialect
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-3154
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3154
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.19.0
>            Reporter: TANG Wen-hui
>            Assignee: TANG Wen-hui
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.22.0
>
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>
> As for sql :
> {code:java}
> String query = "SELECT row_number() over (order by \"hire_date\") FROM \"employee\"";
> {code}
> using RelToSqlConverter  to generate a sql for mysql , the result is :
> {code:java}
> SELECT ROW_NUMBER() OVER (ORDER BY `hire_date` NULLS LAST)
> FROM `foodmart`.`employee`
> {code}
> However, mysql does not support NULLS LAST.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)