You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2020/12/18 05:57:01 UTC

[jira] [Commented] (CALCITE-4442) SqlAlter extend not support ALTER TABLE statement

    [ https://issues.apache.org/jira/browse/CALCITE-4442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17251529#comment-17251529 ] 

Julian Hyde commented on CALCITE-4442:
--------------------------------------

This is a question, not a bug in Calcite. 

> SqlAlter extend not support ALTER TABLE  statement
> --------------------------------------------------
>
>                 Key: CALCITE-4442
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4442
>             Project: Calcite
>          Issue Type: Wish
>          Components: core
>    Affects Versions: 1.18.0
>         Environment: calcite 1.18.0
> and so does the latest 1.26.0
>            Reporter: chener
>            Priority: Major
>
> I want to extend the ALTER TABLE statement ,but I find it is impossible to do that unless i change the source code :
>  
> {code:java}
> // parser.jj
> /** too long to ignore **/
> SqlAlter SqlAlter() :
> {
>     final Span s;
>     final String scope;
>     final SqlAlter alterNode;
> }
> {
>     <ALTER> { s = span(); }
>     scope = Scope()
> /** too long to ignore **/{code}
> Here you see the ALTER statement must have a scope SYSTEM or SESSION ,which is confined
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)