HIVE-4048 : Allow partition by/order by in partitioning spec in over clause and partition function (Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1448881 13f79535-47bb-0310-9956-ffa450edef68
Merge remote-tracking branch 'remotes/apache_hive/ptf-windowing' into ptf