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

Allow transactional check of Table parameter before altering the Table

    XMLWordPrintableJSON

Details

    Description

      We should add the possibility to transactionally check if a Table parameter is changed before altering the table in the HMS.

      This would provide an alternative, less error-prone and faster way to commit an Iceberg table, as the Iceberg table currently needs to:

      • Create an exclusive lock
      • Get the table metadata to check if the current snapshot is not changed
      • Update the table metadata
      • Release the lock

      After the change these 4 HMS calls could be substituted with a single alter table call.
      Also we could avoid cases where the locks are left hanging by failed processes

      Attachments

        Activity

          People

            pvary Peter Vary
            pvary Peter Vary
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h 40m
                4h 40m