HIVE-4935 : Potential NPE in MetadataOnlyOptimizer (Yin Huai via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1507342 13f79535-47bb-0310-9956-ffa450edef68
HIVE-3632 : Upgrade datanucleus to support JDK7 (Xuefu Zhang via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1507354 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4878 : With Dynamic partitioning, some queries would scan default partition even if query is not using it. (Laljo John Pullokkaran via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1507357 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4927 : When we merge two MapJoin MapRedTasks, the TableScanOperator of the second one should be removed (Yin Huai via Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1507359 13f79535-47bb-0310-9956-ffa450edef68
Merge remote branch 'origin/trunk' into trunk-gd
Merge remote branch 'origin/trunk-gd' into fb-YAHOO-321-trunk-gd