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

Inconsistency in schema on tables TAB_COL_STATS, PART_COL_STATS, KEY_CONSTRAINTS and SCHEDULED_QUERIES on SYSDB after upgrade from 3.1.0 to 4.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • None

    Description

      Fresh Install: InitSchema

      1. Tables SYSDB.TAB_COL_STATS and SYSDB.PART_COL_STATS

      Select * from the above tables:

       

      Upgrade Hive Schema from 3.2.0 to 4.1.0:

      Select * on the tables fails post upgrade

      Inconsistency in columns:

         1. Missing column Engine in upgrade Path.

             Looks like missed from HIVE-22046

         2. Redundant columns which got removed as part of HIVE-27725 is not handled in the upgrade path

         TAB_COL_STATS - DB_NAME and TABLE_NAME

         PART_COL_STATS - DB_NAMETABLE_NAME and PARTITION_NAME

      2. Table SYSDB.SCHEDULED_QUERIES **

           - Missing column  ACTIVE_EXECUTION_ID - Looks like missed from HIVE-22872

      After Upgrade:

       Fresh install:

       

      3. SYSDB.KEY_CONSTRAINTS

      • Missing column constraint PARENT_TBL_ID - Looks like missed in HIVE-22728

      Fresh Path:

      Upgrade Path:

      Attachments

        1. image-2024-08-12-13-22-25-517.png
          835 kB
          Indhumathi Muthumurugesh
        2. image-2024-08-12-13-23-29-221.png
          1.17 MB
          Indhumathi Muthumurugesh
        3. image-2024-08-12-13-24-29-328.png
          818 kB
          Indhumathi Muthumurugesh
        4. image-2024-08-12-13-25-25-731.png
          818 kB
          Indhumathi Muthumurugesh
        5. image-2024-08-14-18-59-57-815.png
          233 kB
          Indhumathi Muthumurugesh
        6. image-2024-08-14-19-00-30-680.png
          232 kB
          Indhumathi Muthumurugesh
        7. image-2024-08-14-19-04-16-332.png
          303 kB
          Indhumathi Muthumurugesh
        8. image-2024-08-14-19-04-55-550.png
          241 kB
          Indhumathi Muthumurugesh

        Issue Links

          Activity

            People

              Indhumathi27 Indhumathi Muthumurugesh
              Indhumathi27 Indhumathi Muthumurugesh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: