Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-883

LP Bug: 1409939 - showddl does not display salt clause following 'create table...like...salt using...'.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0 (pre-incubation)
    • sql-cmu
    • None

    Description

      showddl does not display salt clause for table that was created via 'create table...like...salt using n partitions'.
      Noted on 20141216 build.

      >>create table mytbl( a int not null, b int, c int) primary key (a) salt using 8 partitions;
      ..

      — SQL operation complete.
      >>showddl mytbl;

      CREATE TABLE TRAFODION.JULSCH.MYTBL
      (
      A INT NO DEFAULT NOT NULL NOT DROPPABLE
      , B INT DEFAULT NULL
      , C INT DEFAULT NULL
      , PRIMARY KEY (A ASC)
      )
      SALT USING 8 PARTITIONS
      ;

      — SQL operation complete.
      >>create table myliketbl like mytbl salt using 12 partitions;

      — SQL operation complete.
      >>showddl myliketbl;

      CREATE TABLE TRAFODION.JULSCH.MYLIKETBL
      (
      A INT NO DEFAULT NOT NULL NOT DROPPABLE
      , B INT DEFAULT NULL
      , C INT DEFAULT NULL
      , PRIMARY KEY (A ASC)
      )
      ;

      — SQL operation complete.

      to reproduce:
      create table mytbl( a int not null, b int, c int) primary key (a) salt using 8 partitions;
      showddl mytbl;
      create table myliketbl like mytbl salt using 12 partitions;
      showddl myliketbl;

      Attachments

        Activity

          People

            hzeller Hans Zeller
            thaiju Julie Thai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: