Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4442

SqlAlter extend not support ALTER TABLE statement

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.18.0
    • None
    • core
    • None
    • calcite 1.18.0

      and so does the latest 1.26.0

    Description

      I want to extend the ALTER TABLE statement ,but I find it is impossible to do that unless i change the source code :

       

      // 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 **/

      Here you see the ALTER statement must have a scope SYSTEM or SESSION ,which is confined

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            chener chener
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: