Hive
  1. Hive
  2. HIVE-3973

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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".

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Marc Limotte
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development