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

Convert runtime exceptions to semantic exceptions for missing partitions/tables in show/describe statements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.0
    • 0.10.0
    • Query Processor
    • None
    • Reviewed

    Description

      The SHOW PARTITIONS command in Hive does not check for valid table and partition names during query compilation. Calling this command with non-existent table causes a run-time exception.

      The DESC command also does not check for this in semantic analysis.

      hive> desc xxxyyy;
      OK
      Table xxxyyy does not exist
      Time taken: 1.403 seconds

      hive> show partitions xxxyyy;
      Table xxxyyy does not exist
      FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask

      Attachments

        1. HIVE-3282.1.patch
          13 kB
          Sambavi Muthukrishnan

        Issue Links

          Activity

            People

              sambavi Sambavi Muthukrishnan
              sambavi Sambavi Muthukrishnan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified