[
https://issues.apache.org/jira/browse/CALCITE-7178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zhen Chen resolved CALCITE-7178.
--------------------------------
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/91fc5980e58a15dc7db3329ad6c2a2a2eb93de6a
Thanks for review [~mbudiu]
> FETCH and OFFSET in EnumerableMergeUnionRule do not support BIGINT
> ------------------------------------------------------------------
>
> Key: CALCITE-7178
> URL: https://issues.apache.org/jira/browse/CALCITE-7178
> 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}
> if (sort.fetch != null) {
> if (sort.offset == null) {
> inputFetch = sort.fetch;
> } else if (sort.fetch instanceof RexLiteral && sort.offset instanceof
> RexLiteral) {
> inputFetch =
> call.builder().literal(RexLiteral.intValue(sort.fetch)
> + RexLiteral.intValue(sort.offset));
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)