You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Zhen Chen (Jira)" <ji...@apache.org> on 2025/09/12 00:36:00 UTC
[jira] [Resolved] (CALCITE-7176) FETCH and OFFSET in SortMergeRule do not support BIGINT
[ https://issues.apache.org/jira/browse/CALCITE-7176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhen Chen resolved CALCITE-7176.
--------------------------------
Resolution: Fixed
Fixed in https://github.com/apache/calcite/commit/91472d2c79945f475880891874a6401408b1520e
Thanks for review [~mbudiu]
> FETCH and OFFSET in SortMergeRule do not support BIGINT
> -------------------------------------------------------
>
> Key: CALCITE-7176
> URL: https://issues.apache.org/jira/browse/CALCITE-7176
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.40.0
> Reporter: Zhen Chen
> Assignee: Zhen Chen
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.41.0
>
>
> The current code still uses RexLiteral.iintValue().
> {code:java}
> final int topFetch = topSort.fetch instanceof RexLiteral
> ? RexLiteral.intValue(topSort.fetch) : -1;
> final int bottomFetch = bottomSort.fetch instanceof RexLiteral
> ? RexLiteral.intValue(bottomSort.fetch) : -1;
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)