[
https://issues.apache.org/jira/browse/CALCITE-851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14706322#comment-14706322
]
Julian Hyde commented on CALCITE-851:
-------------------------------------
I have checked a fix, with new methods SqlAbstractParserImpl.getOriginalSql and
setOriginalSql, into
https://github.com/julianhyde/incubator-calcite/tree/new-master; will merge
into apache master after release 1.4.
[~maryannxue], you can use this for your work on CREATE VIEW in PHOENIX-1706.
> Add original SQL string as a field in the parser
> ------------------------------------------------
>
> Key: CALCITE-851
> URL: https://issues.apache.org/jira/browse/CALCITE-851
> Project: Calcite
> Issue Type: Bug
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Fix For: 1.5.0-incubating
>
>
> Add the SQL string to the parser. This will be useful for CREATE VIEW, for
> instance, which needs to access the original SQL (including comments and
> formatting) rather than just the AST.
> It could be a field "protected final String originalSql;" in SqlParserImpl.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)