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

Need to create a partitioned salted table with the CREATE TABLE LIKE DDL even though the source table is not partitioned.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • sql-cmu
    • None

    Description

      When update stats for a native Hive table, the native table can be non-partitioned as far as Trafodion is concerned. Due to the data size of the sampling, it is important to have the capability to create a partitioned salted table with the CREATE TABLE LIKE cause even though the source table is not partitioned, with the syntax similar to the following.

      CREATE TABLE TRAFODION."HIVESTATS".SAMPLE_TABLE
      LIKE TRAFODION."HV_HIVE".CUSTOMER
      salt using 5 partitions on( C_CUSTOMER_SK,C_CUSTOMER_ID );

      Attachments

        Activity

          People

            weiqxu Weiqing Xu
            qfc Qifan Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: