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

HMS schema Upgrade Script is failing with NPE

    XMLWordPrintableJSON

    Details

    • Target Version/s:

      Description

      schema upgrade tool is failing with NPE while executing "SELECT 'Upgrading MetaStore schema from 1.2.0 to 2.0.0' AS ' '". The header row (metadata) is coming with rows having value null. This is causing null pointer access in function TableOutputFormat::getOutputString when row.values[i] is accessed. Instead of " AS ' ' ", if some other value  like "AS dummy" is given, it's working fine. The issue is coming with mysql version 5.7 and above.

       

       

       

        Attachments

        1. HIVE-21844.02.patch
          9 kB
          mahesh kumar behera
        2. HIVE-21844.01.patch
          1 kB
          mahesh kumar behera

          Issue Links

            Activity

              People

              • Assignee:
                maheshk114 mahesh kumar behera
                Reporter:
                maheshk114 mahesh kumar behera
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m