[
https://issues.apache.org/jira/browse/CALCITE-7503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18079325#comment-18079325
]
Yu Xu commented on CALCITE-7503:
--------------------------------
In my opinion, from a practical perspective, determining equality without
considering position is more reasonable and would minimize the impact on future
compatibility.
> 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
> Labels: pull-request-available
>
> 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)