HIVE-4858: Sort 'show grant' result to improve usability and testability (Xuefu Zhang via Brock Noland)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1505416 13f79535-47bb-0310-9956-ffa450edef68
Serde-reported partition cols should not be persisted in metastore (Travis Crawford via egc)

Submitted by:	Travis Crawford
Reviewed by:	Edward Capriolo


git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1505418 13f79535-47bb-0310-9956-ffa450edef68
Merge remote-tracking branch 'upstream/trunk' into HIVE-4827
If we can have shared scan after merge, we need to check if the total
size of local tables is under the limit. If not, we do not merge.
update results