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

Kirill Tkalenko updated CALCITE-7592:
-------------------------------------
    Description: 
I have not found any objections to the previously submitted proposal [Add 
expression for OFFSET ROWS and FETCH FIRST ROWS 
ONLY|https://lists.apache.org/thread/xgdgc8mgxh7rjclzblzy3lk5fcjyn1q4]; I 
propose implementing it for "FETCH" in this ticket.

Brief description:
It is proposed to add the ability to use arithmetic expressions and scalar 
function calls for "FETCH" only when enclosed in parentheses, by analogy with 
other DBMSs.

Currently, it's 
{noformat}
[ FETCH { FIRST | NEXT } [ count ] { ROW | ROWS } ONLY ]{noformat}
, but the proposal is to make it
{noformat}
[ FETCH { FIRST | NEXT } [ count | (expression) ] { ROW | ROWS } ONLY 
]{noformat}
.

  was:
I have not found any objections to the previously submitted proposal [Add 
expression for OFFSET ROWS and FETCH FIRST ROWS 
ONLY|https://lists.apache.org/thread/xgdgc8mgxh7rjclzblzy3lk5fcjyn1q4]; I 
propose implementing it for "FETCH" in this ticket.

Brief description:
It is proposed to add the ability to use arithmetic expressions and scalar 
function calls for "FETCH" only when enclosed in parentheses, by analogy with 
other DBMSs.


> Add expression support for FETCH
> --------------------------------
>
>                 Key: CALCITE-7592
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7592
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Kirill Tkalenko
>            Priority: Major
>
> I have not found any objections to the previously submitted proposal [Add 
> expression for OFFSET ROWS and FETCH FIRST ROWS 
> ONLY|https://lists.apache.org/thread/xgdgc8mgxh7rjclzblzy3lk5fcjyn1q4]; I 
> propose implementing it for "FETCH" in this ticket.
> Brief description:
> It is proposed to add the ability to use arithmetic expressions and scalar 
> function calls for "FETCH" only when enclosed in parentheses, by analogy with 
> other DBMSs.
> Currently, it's 
> {noformat}
> [ FETCH { FIRST | NEXT } [ count ] { ROW | ROWS } ONLY ]{noformat}
> , but the proposal is to make it
> {noformat}
> [ FETCH { FIRST | NEXT } [ count | (expression) ] { ROW | ROWS } ONLY 
> ]{noformat}
> .



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

Reply via email to