public WindowSpec getWindowSpec() {
      return windowSpec;
    }
Add default order spec if there is no order and validate order spec for valued based
windowing since only one sort key is allowed.
@param wFn Window function spec
@throws SemanticException
ql/src/java/org/apache/hadoop/hive/ql/parse/WindowingSpec.java