Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-560

HCatClient should support addition of new columns to a Table.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.1
    • 0.5, 0.4.1
    • client
    • None

    Description

      HCatClient currently doesn't support the modification of a Table schema to support new columns. (The equivalent of "ALTER TABLE ... ADD COLUMN(...)".)

      This is required by systems that need to support evolving data-schemas. If one considers the simplified case of only appending columns to the end of a table's schema-definition, it should be easy to provide and implement the following API in terms of HMSClient::alter_table():

      public void appendColumnsToTable(String db, String table, List<HCatFieldSchema> newColumns) throws HCatException;

      Attachments

        1. HCATALOG-560.trunk.patch
          27 kB
          Mithun Radhakrishnan
        2. HCATALOG-560.branch4.patch
          27 kB
          Mithun Radhakrishnan

        Activity

          People

            mithun Mithun Radhakrishnan
            mithun Mithun Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: