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

Truncate table for Acid tables

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • Transactions
    • None
    • n/a

    Description

      How should this work? Should it work like Insert Overwrite T select * from T where 1=2?
      This should create a new empty base_x/ and thus operate w/o violating Snapshot Isolation semantics.

      This makes sense for specific partition or unpartitioned table. What about "Truncate T" where T is partitioned? Is the expectation to wipe out all partition info or to make each partition empty?

      Attachments

        1. HIVE-18131.03.patch
          1 kB
          Eugene Koifman
        2. HIVE-18131.02.patch
          1 kB
          Eugene Koifman
        3. HIVE-18131.01.patch
          1 kB
          Eugene Koifman

        Issue Links

          Activity

            People

              ekoifman Eugene Koifman
              ekoifman Eugene Koifman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: