Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21807

Provide a variant of IMetaStoreClient.createTable() that returns populated Table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0
    • None
    • Metastore
    • None

    Description

      Currently https://github.com/apache/hive/blob/6664c44c795e467c08c79948270409f03a86d8c2/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java#L1678-L1679 does not provide a way to return a create table timestamp and many other information from the Table. Calling IMetastore.getTable() isn't an atomic operation and can be slightly racy.

      By having a variant of IMetastoreClient.createTable() that returns a populated Table, we can make this operation atomic and avoid any race condition.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fredyw Fredy Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: