[
https://issues.apache.org/jira/browse/CALCITE-7503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18079301#comment-18079301
]
Mihai Budiu commented on CALCITE-7503:
--------------------------------------
One important question to resolve is about hint equality: are two hints with
the same fields but different positions equal or different?
If we make them different, this would be a breaking change.
> 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
> Priority: Minor
>
> 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)