[
https://issues.apache.org/jira/browse/CALCITE-5723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17726792#comment-17726792
]
ZheHu commented on CALCITE-5723:
--------------------------------
As far as I know, the lower version(<12) Oracle doesn't support either ANSI
FECTH/OFFSET or LIMIT/OFFSET. The LIMIT works through:
{code}
select col from table where rownum<=3
{code}
*rownum* is a keyword in Oracle. The above SQL is equivalent to:
{code}
select col from table limit 3
{code}
> Oracle dialect generates SQL that cannot be recognized by lower version
> Oracle Server(<12) when unparsing OffsetFetch
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: CALCITE-5723
> URL: https://issues.apache.org/jira/browse/CALCITE-5723
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.34.0
> Reporter: ZheHu
> Assignee: ZheHu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.35.0
>
>
> Current OracleSqlDialect unparses offset/fetch using ANSI standard "OFFSET
> offset ROWS FETCH NEXT fetch ROWS ONLY" syntax. However, Oracle supports
> such syntax since 12c.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)