You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2026/09/02 17:50:00 UTC

[jira] [Commented] (CALCITE-7761) Preserve OFFSET and FETCH when rewriting outer ORDER BY

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

Julian Hyde commented on CALCITE-7761:
--------------------------------------

Is there a SQL (quidem) test case?

> Preserve OFFSET and FETCH when rewriting outer ORDER BY
> -------------------------------------------------------
>
>                 Key: CALCITE-7761
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7761
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Kirill Tkalenko
>            Assignee: Kirill Tkalenko
>            Priority: Major
>              Labels: pull-request-available
>
> {{SqlValidatorImpl.performUnconditionalRewrites}} may overwrite {{OFFSET}} or {{FETCH}} previously added to an inner {{SELECT}} during query rewriting. Merge the outer {{SqlOrderBy}} only when the inner {{SELECT}} has no {{{}ORDER BY{}}}, {{{}OFFSET{}}}, or {{{}FETCH{}}}.



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