[
https://issues.apache.org/jira/browse/CALCITE-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16798058#comment-16798058
]
Chunwei Lei commented on CALCITE-883:
-------------------------------------
Maybe I should say SqlOverOperator instead of RexOver. Let's confirm that your
idea is somehow as follows:
{code:java}
[
<IGNORE> s1 = span() <NULLS> {
call = SqlStdOperatorTable.IGNORE_NULLS.createCall(s1.end(this),
call);
}
]
[
<OVER>
(
over = SimpleIdentifier()
|
over = WindowSpecification()
)
{
call = SqlStdOperatorTable.OVER.createCall(s.end(over), call, over);
}
]
{code}
Is it right?
> RESPECT NULLS, IGNORE NULLS option for LEAD, LAG window functions
> -----------------------------------------------------------------
>
> Key: CALCITE-883
> URL: https://issues.apache.org/jira/browse/CALCITE-883
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Sean Hsuan-Yi Chu
> Assignee: Chunwei Lei
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> This issue was brought up in Drill community:
> (https://issues.apache.org/jira/browse/DRILL-3597)
> For convenience, I copied and pasted the reporter Khurram Faraaz's
> description here:
> "The SQL standard defines a RESPECT NULLS or IGNORE NULLS option for lead,
> lag, first_value, and last_value window functions."
> In Calcite, we should have been able to recognized this option.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)