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

Support purge option in drop database statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      In case there are tables in the database..and the trash is insecure:

      > drop database if exists a cascade ;
      Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Unable to drop a.t because it is in an encryption zone and trash is enabled.  Use PURGE option to skip trash.) (state=08S01,code=1)
      

      however...drop database doesn't accepts the purge option...
      it would be good to have it; as the exception message already refers to it!

      Attachments

        Activity

          People

            Unassigned Unassigned
            kgyrtkirk Zoltan Haindrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: