Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-6305

Allow column definitions in ALTER VIEW

    XMLWordPrintableJSON

Details

    • ghx-label-7

    Description

      When working with views we currently only allow separate column definitions in CREATE VIEW but not in ALTER VIEW.

      Example:

      create table t1 (c1 int, c2 int);
      create view v (x comment 'hello world', y) as select * from t1;
      describe v;
      +------+------+-------------+
      | name | type | comment     |
      +------+------+-------------+
      | x    | int  | hello world |
      | y    | int  |             |
      +------+------+-------------+
      

      Currently we cannot use ALTER VIEW to change the column definitions after the fact, i.e. the following should be supported:

      alter view v (z1, z2 comment 'foo bar') as select * from t1;
      

      Attachments

        Activity

          People

            poojanilangekar Pooja Nilangekar
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: