[
https://issues.apache.org/jira/browse/CALCITE-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
wangjie updated CALCITE-4474:
-----------------------------
Description:
the SqlSimpleParser#simplifySql function can filter comments
but when `--` follow by variable, this comment will not be filter. In fact, it
should be filtered
you can see
[reproduce-demo](https://github.com/wangjie-fourth/calcite-reproduce)
was:
the SqlSimpleParser#simplifySql function can filter comments
but when `--` follow by variable, this comment will not be filter. In fact, it
should be filtered
> SqlSimpleParser inner Tokenizer ignore comment in some special case
> -------------------------------------------------------------------
>
> Key: CALCITE-4474
> URL: https://issues.apache.org/jira/browse/CALCITE-4474
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.26.0
> Reporter: wangjie
> Priority: Minor
> Fix For: 1.26.0
>
>
> the SqlSimpleParser#simplifySql function can filter comments
> but when `--` follow by variable, this comment will not be filter. In fact,
> it should be filtered
> you can see
> [reproduce-demo](https://github.com/wangjie-fourth/calcite-reproduce)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)