You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/08/26 18:43:00 UTC

[jira] [Updated] (CALCITE-3296) Decorrelator gives empty result after decorrelating sort rel with null offset and fetch

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

ASF GitHub Bot updated CALCITE-3296:
------------------------------------
    Labels: pull-request-available  (was: )

> Decorrelator gives empty result after decorrelating sort rel with null offset and fetch
> ---------------------------------------------------------------------------------------
>
>                 Key: CALCITE-3296
>                 URL: https://issues.apache.org/jira/browse/CALCITE-3296
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Juhwan Kim
>            Assignee: Juhwan Kim
>            Priority: Major
>              Labels: pull-request-available
>
> It seems like I introduced a bug with the recent decorrelator patch. Sort rel with null offset and fetch would end up becoming an empty value since decorrelator would call sortLimit builder with 0 limit and 0 offset. It should pass negative values to builder when values are null.
> https://github.com/apache/calcite/blob/e863294ccfbed9dd520c999f75ed0bbe03f9fb1d/core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java#L423



--
This message was sent by Atlassian Jira
(v8.3.2#803003)