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

Truncate table for Acid tables conflicts with ResultSet cache

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.2.0
    • Transactions
    • None

    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-19387.01-branch-3.patch
          26 kB
          Eugene Koifman
        2. HIVE-19387.01.patch
          26 kB
          Eugene Koifman

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: