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

Exchange partition does not show outputs field for post/pre execute hooks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 1.3.0, 2.0.0
    • Query Processor
    • None

    Description

      The pre/post execute hook interface has fields that indicate which Hive objects were read / written to as a result of running the query. For the exchange partition operation, these fields (ReadEntity and WriteEntity) are empty.

      This is an important issue as the hook interface may be configured to perform critical warehouse operations.

      See

      ql/src/test/results/clientpositive/exchange_partition3.q.out
      
      PREHOOK: query: -- This will exchange both partitions hr=1 and hr=2
      ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2
      PREHOOK: type: ALTERTABLE_EXCHANGEPARTITION
      POSTHOOK: query: -- This will exchange both partitions hr=1 and hr=2
      ALTER TABLE exchange_part_test1 EXCHANGE PARTITION (ds='2013-04-05') WITH TABLE exchange_part_test2
      POSTHOOK: type: ALTERTABLE_EXCHANGEPARTITION
      

      Seems it should also print output fields.

      Attachments

        1. HIVE-12215.2.patch
          540 kB
          Aihua Xu
        2. HIVE-12215.3.patch
          540 kB
          Aihua Xu
        3. HIVE-12215.patch
          538 kB
          Aihua Xu
        4. HIVE-12215.patch.branch1
          535 kB
          Aihua Xu

        Issue Links

          Activity

            People

              aihuaxu Aihua Xu
              aihuaxu Aihua Xu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: