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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sambavi Sambavi Muthukrishnan Assign to me
            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

              Slack

                Issue deployment