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

INSERT OVERWRITE with empty result set does not clear transactional table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 4.0.0
    • None
    • Hive
    • None

    Description

      The following query:

      INSERT OVERWRITE TABLE t SELECT 1 WHERE FALSE
      

      should serve to truncate a table by producing an empty base data directory. In fact no new base directory is created, so the table is not cleared. (at least with an insert_only table, I didn't test full-ACID)

      This bug does not seem to happen with non-transactional tables.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: