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

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

Fixed in 
[https://github.com/apache/calcite/commit/b4a9b28799eceb1d23e5c5791d37a2d7f2afa607]

Thank you for the reviews [~xuzifu666] [~zhenchen] 

> Hint validation does not have access to source position
> -------------------------------------------------------
>
>                 Key: CALCITE-7503
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7503
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> One can attach hints to queries using the /*+ */ syntax.
> Hints start as SqlHint objects, and are converted to RelHint objects. SqlHint 
> object have a parser position, but RelHint objects do not.
> Each hint type has a validation function. That function is called on the 
> RelHint object.
> On validation failure the function cannot point out to the position of the 
> hint, since it cannot access it. 
> The proposal is to add source position to RelHint objects.



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

Reply via email to