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

INSERT OVERWRITE with empty result set does not clear transactional table

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Hive
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: