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

Include Table information in Hive's AddPartitionEvent.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.1, 0.10.0
    • Metastore
    • None

    Description

      This has to do with a minor overhaul of the HCatalog notifications that we're attempting in HCATALOG-546.

      It is proposed that HCatalog's notifications (on Add/Drop of Partitions) provide details to identify the affected partitions.

      Using the Partition object in AddPartitionEvent, one is able to retrieve the values of the partition-keys and the name of the Table. However, the partition-keys themselves aren't available (since the Table instance isn't part of the AddPartitionEvent).

      Adding the table-reference to the AddPartitionEvent and DropPartitionEvent classes will expose all the info we need. (The alternative is to query the metastore for the table's schema and use the partition-keys from there. :/)

      I'll post a patch for this shortly.

      Attachments

        1. HIVE-3680.trunk.patch
          7 kB
          Mithun Radhakrishnan
        2. HIVE-3680.branch9.patch
          6 kB
          Mithun Radhakrishnan

        Issue Links

          Activity

            People

              mithun Mithun Radhakrishnan
              mithun Mithun Radhakrishnan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: