Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8378

add 'force' option for drop table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.94.6.1, 0.95.0
    • None
    • shell, Usability
    • None

    Description

      Does this logic look familiar?

      def drop_table(name):
        if (!admin.table_exists?(name):
          return
        if (admin.enabled?(name)):
          admin.disable_table(name)
        admin.drop_table(name)
      

      Let's add a force option to 'drop' that does exactly this. We'll save 6 lines of code for thousands of developers in millions of scripts.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: