Hive
  1. Hive
  2. HIVE-476

Add getTable and getPartition calls to the ReadEntity and WriteEntity objects in PreExecute hooks.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      table and partition objects are available in pre-execution hook interface.

      Description

      These functions are useful when properties of the tables and partitions have to be modified from the user defined PreExecute hook.

      I will be using it in the archival plugin which automatically unarchives from an archival store and changes the metadata to indicate this fact in the metastore.

      1. patch-476.txt
        2 kB
        Ashish Thusoo

        Activity

        Hide
        Prasad Chakka added a comment -

        Thanks Ashish.

        Show
        Prasad Chakka added a comment - Thanks Ashish.
        Hide
        Prasad Chakka added a comment -

        I am getting the following error even though patch doesn't create or drop tables in anyway.

           [junit] diff -a -I \(file:\)\|\(/tmp/.*\) /data/users/pchakka/workspace/oshive/build/ql/test/logs/clientpositive/input3.q.out /data/users/pchakka/workspace/oshive3/ql/src/test/results/clientpositive/input3.q.out
            [junit] 14,15d13
            [junit] < altern1
            [junit] < external2
            [junit] 18d15
            [junit] < src2
            [junit] 24,25d20
            [junit] < t1
            [junit] < t2
            [junit] 28,30d22
            [junit] < tstparttbl
            [junit] < tstparttbl2
            [junit] < union_out
            [junit] 78,79d69
            [junit] < altern1
            [junit] < external2
            [junit] 82d71
            [junit] < src2
            [junit] 88,89d76
            [junit] < t1
            [junit] < t2
            [junit] 92,94d78
            [junit] < tstparttbl
            [junit] < tstparttbl2
            [junit] < union_out
        
        Show
        Prasad Chakka added a comment - I am getting the following error even though patch doesn't create or drop tables in anyway. [junit] diff -a -I \(file:\)\|\(/tmp/.*\) /data/users/pchakka/workspace/oshive/build/ql/test/logs/clientpositive/input3.q.out /data/users/pchakka/workspace/oshive3/ql/src/test/results/clientpositive/input3.q.out [junit] 14,15d13 [junit] < altern1 [junit] < external2 [junit] 18d15 [junit] < src2 [junit] 24,25d20 [junit] < t1 [junit] < t2 [junit] 28,30d22 [junit] < tstparttbl [junit] < tstparttbl2 [junit] < union_out [junit] 78,79d69 [junit] < altern1 [junit] < external2 [junit] 82d71 [junit] < src2 [junit] 88,89d76 [junit] < t1 [junit] < t2 [junit] 92,94d78 [junit] < tstparttbl [junit] < tstparttbl2 [junit] < union_out
        Hide
        Prasad Chakka added a comment -

        testing...

        Show
        Prasad Chakka added a comment - testing...
        Hide
        Ashish Thusoo added a comment -

        Added getPartition and getTable and also changed getParameter to getParameters()..

        Show
        Ashish Thusoo added a comment - Added getPartition and getTable and also changed getParameter to getParameters()..

          People

          • Assignee:
            Ashish Thusoo
            Reporter:
            Ashish Thusoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development