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

HiveSchemaTool.validateSchemaTables() should wrap a SQLException when rethrowing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0, 3.0.0
    • None
    • None

    Description

      If schematool is run with the -verbose flag then it will print a stack trace for an exception that occurs. If a SQLException is caught during HiveSchemaTool.validateSchemaTables() then a HiveMetaException is rethrown containing the text of the SQLException. If we instead throw  a HiveMetaException that wraps the SQLException then the stacktrace will help with diagnosis of issues where the SQLException contains a generic error text. 

      Attachments

        1. HIVE-18877.1.patch
          5 kB
          Andrew Sherman
        2. HIVE-18877.2.patch
          5 kB
          Andrew Sherman
        3. HIVE-18877.3.patch
          5 kB
          Andrew Sherman
        4. HIVE-18877.4.patch
          5 kB
          Andrew Sherman
        5. HIVE-18877.5.patch
          5 kB
          Andrew Sherman
        6. HIVE-18877.6.patch
          5 kB
          Andrew Sherman

        Activity

          People

            asherman Andrew Sherman
            asherman Andrew Sherman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: