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

Mihai Budiu resolved CALCITE-7251.
----------------------------------
    Fix Version/s: 1.42.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/82cdcc78dbcb8df44827c1a9fe1126ccfffc21ac
Thank you for your reviews [~jensen] [~caicancai]

> SEARCH and WINDOW operations should carry source position information
> ---------------------------------------------------------------------
>
>                 Key: CALCITE-7251
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7251
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.40.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> In  [CALCITE-6071] I have added support for some Rex nodes to carry source 
> information position. I propose adding this to more kinds of nodes: SEARCH 
> and WINDOW are two examples that are frequently used and easy to modify. This 
> is really a kind of debugging information, and it can help provide better 
> runtime diagnostics. 
> SEARCH nodes are tricky, because by construction they combine information 
> from multiple expressions; the proposal is to have one position per search 
> which is the SUM of the positions of the component expressions. This leads to 
> some information loss, but it's better than nothing, and in practice the 
> components are very likely to come from nearby positions in the source code.



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

Reply via email to