Update parquet spec to 2.0 and add decimal logical type.

Change-Id: I1a4cbe73a2494f8b2dd09f44bfcc0a019e710344
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2772
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: Nong Li <nong@cloudera.com>
Ignore order-by without limit in INSERT and CTAS

Order-by without limit in the query statement corresponding an INSERT
or CTAS must be ignored because
i) There is no guarantee on row ordering when the target table is scanned again
   i.e. 'select * from table' may return rows in any order, regardless of how the
   rows were inserted, and
ii) Ignoring (and not flagging an error) is consistent with the treatment of
   order-by w/o limit in nested queries, union operands etc.
Currently, an order-by w/o limit in a QueryStmt is only evaluated if the analyzer is
the root analyzer (has no ancestors).
However, a new child analyzer is not created for the QueryStmt in an InsertStmt, so this
technique fails for inserts. The correct thing to do is to use a child analyzer for that
QueryStmt, but this has spill-over scoping effects for analysis of with clauses.

This patch adds a flag, similar to the isExplain flag to the analyzer to identify
insert statements.

Change-Id: I9ded587cfea75eca0b7a43ee9b0df0a6c8ecb602
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3044
Reviewed-by: Srinath Shankar <sshankar@cloudera.com>
Tested-by: jenkins
Add option to dump mem usage of all queries to /memz.

Change-Id: I586aa81be4cb8320ffa28c242d0fb1ea077fcb9e
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3042
Tested-by: jenkins
Reviewed-by: Nong Li <nong@cloudera.com>