HIVE-3999 Mysql metastore upgrade script will end up with different schema than
the full schema load (Jarek and Mark via namit)




git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1443952 13f79535-47bb-0310-9956-ffa450edef68
HIVE-3998 Oracle metastore update script will fail when upgrading from 0.9.0 to
0.10.0 (Jarek and Mark via namit)



git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1443955 13f79535-47bb-0310-9956-ffa450edef68
HIVE-3995 PostgreSQL upgrade scripts are not valid
(Jarek and Mark via namit)



git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1444332 13f79535-47bb-0310-9956-ffa450edef68
HIVE-4001 Add o.a.h.h.serde.Constants for backward compatibility
(Navis via namit)



git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1444404 13f79535-47bb-0310-9956-ffa450edef68
refactored translation of PTF Chain.
refactor Windowing translation
HIVE-3252. Add environment context to metastore Thrift calls. (Samuel Yuan via kevinwilfong)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1445309 13f79535-47bb-0310-9956-ffa450edef68
simplify RowResolver creation.
refactored ptfDesc deserializer
refactor SemanticAnalyzer:
- Phase 1 construct WindowingSpec & PTFInvocationSpec
- genPlan: generate separate plans for Windowing & PTF Invocations.
refactor PTFOp and function classes to use new data structs.
Remove old data struct classes.
When executing the WdwTblFunc:
- use WdwOutput as output Partition's output shape
- set output OI of function to StdStructOI 
- except when there is no WdwExprs and having forward LazyStruct that
comes out of Partition.
the first Arg of a Lead/Lag function can refer to windowingFns,
including ranking fns.
construct PTF RR using alias specified with PTF invocation
special handling for Noop fns: RR and Shape
minor NPEs in Spec building functions in SemAly
semAly windowingSpec was not being set on the current QB
Windowing translation: copy ShapeDetails from wdwOut to output even if
same; so later on changes to out shape don't affect wdwOut shape.
For windowing set the OI for output from Wdw Processing to exactly as
specified by the WdwFns; not a StdStruct constructed from
LazyBinSerde.OI. Why? Some fns return Writables, and others return Java
Objs.
when setting default PartSpec in WdwTabFn don't clear default Order
Spec. Why? they can come from diff places: Order from Sort clause, Part
from a Wdw Spec.
add Windowing Exprs to qbp.destToWindowingExprs; used to filter out
these from the distinct list.
setHasWindowing not set in moveaggregationExprsToWindowingSpec
HIVE-4028 : Bring paranthesis handling in windowing specification in compliance with sql standard (Ashutosh Chauhan)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/ptf-windowing@1446842 13f79535-47bb-0310-9956-ffa450edef68