Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18685 Add catalogs to Hive
  3. HIVE-19769

Create dedicated objects for DB and Table names

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0, 4.0.0-alpha-1
    • storage-api
    • None

    Description

      Currently table names are always strings.  Sometimes that string is just tablename, sometimes it is dbname.tablename.  Sometimes the code expects one or the other, sometimes it handles either.  This is burdensome for developers and error prone.  With the addition of catalog to the hierarchy, this becomes even worse.

      I propose to add two objects, DatabaseName and TableName.  These will track full names of each object.  They will handle inserting default catalog and database names when those are not provided.  They will handle the conversions to and from strings.

      These will need to be added to storage-api because ValidTxnList will use it.

      Attachments

        1. HIVE-19769.patch
          67 kB
          Alan Gates

        Issue Links

          Activity

            People

              gates Alan Gates
              gates Alan Gates
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: