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

Initialize NEXT_WRITE_ID. NWI_NEXT on converting an existing table to full acid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0
    • Transactions
    • None

    Description

      Need to set this to a reasonably high value the the table.
      This will reserve a range of write IDs that will be treated by the system as committed.
      This is needed so that we can assign unique ROW__IDs to each row in files that already exist in the table. For example, if the value is initialized to the number of files currently in the table, we can think of each file as written by a separate transaction and thus a free to assign bucketProperty (BucketCodec) of ROW_ID in whichever way is convenient.
      it's guaranteed that all rows get unique ROW_IDs this way.

      Attachments

        1. HIVE-19750.01.patch
          30 kB
          Eugene Koifman
        2. HIVE-19750.01-branch-3.patch
          36 kB
          Eugene Koifman
        3. HIVE-19750.02.patch
          30 kB
          Eugene Koifman
        4. HIVE-19750.03.patch
          37 kB
          Eugene Koifman

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: