rtrivedi12 opened a new pull request, #5766:
URL: https://github.com/apache/hive/pull/5766

   …ange in partition location
   
   
   ### What changes were proposed in this pull request?
   This change skips the DFS_URI authorization if there is no change in the 
PARTITION location in the ALTER_PARTITION event.
   
   If the old partition and new partition Uri are the same or the old partition 
location is empty, then skip adding DFS_URI for authorization.
   
   ### Why are the changes needed?
   The LOAD DATA command invokes the ALTER_PARTITION event to update stats for 
the newly loaded partition. ALTER_PARTITION authorizes DFS_URI for the 
partition location even when the partition locations do not change. This 
requires the Hadoop SQL  policy for DFS_URI to be defined for the partition 
location for LOAD DATA commands.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, after this change, users will no longer need the DFS_URI policy for 
target table partition location.
   
   
   ### Is the change a dependency upgrade?
   No
   
   
   ### How was this patch tested?
   Manual testing
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to