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

Misleading error message for DROP TABLE IF EXISTS when derby is in read-only mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.9.0
    • None
    • None
    • None

    Description

      Mis-leading error message implies that hive does not respect the IF EXISTS clause for DROP TABLE.

      Here's what it looks like from the hive shell:

      hive> DROP TABLE IF EXISTS ashgafjhg;
      FAILED: Error in semantic analysis: Table not found ashgafjhg

      Doesn't matter what the table name is.

      Turns out the real issue was that the Derby metastore was already in use. Other commands were throwing this error:

      A read-only user or a user in a read-only database...

      DROP TABLE should show the error about the read-only user, which is more helpful than the misleading error about "Table not found".

      Attachments

        Activity

          People

            Unassigned Unassigned
            mlimotte Marc Limotte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: