IMPALA-1180: Add --skip_lzo_verison_check flag

Change-Id: Ib185e92150f3ee9ca8dabf959d3ed2d0857cc3da
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4463
Reviewed-by: Skye Wanderman-Milne <skye@cloudera.com>
Tested-by: jenkins
IMPALA-1268: Fix initialization/closing of agg_fn_ctxs_ in partitioned agg

I tested this locally, I don't think it's worth adding a regular test
case.

Change-Id: Ifaeb7b5d37bc7c00efe8292cef638beae832b131
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4462
Reviewed-by: Nong Li <nong@cloudera.com>
Tested-by: jenkins
Add counters to buffered tuple stream.

Change-Id: Ia1a133bb219d629e9d7fd18e30356826faf17b69
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4464
Reviewed-by: Victor Bittorf <victor.bittorf@cloudera.com>
Tested-by: jenkins
Analytic plan optimization: taking advantage of the hash partitioning of the preceding aggregation.

- determine the partition group that has maximal intersection of its partition exprs with the
  preceding grouping exprs
- if that intersection's expected ndv > #nodes, make that partition group the first one in the sequence
  to be computed and reduce the hash partition of the preceding aggregation to that intersection

Change-Id: I612b4a260a8975deb495e5d34c32f03db4a7cca7
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4451
Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
Tested-by: jenkins
Analytic Fns: BE support for range unbounded on both sides and range offsets fail analysis

1) Adds BE support for RANGE windows between UNBOUNDED PRECEDING to
   UNBOUNDED FOLLOWING.
2) RANGE windows with offset boundaries fail analysis because they're
   not supported by the BE yet.

Change-Id: I734575eb87c909d09d24c4df028023f3b50d3cb5
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4442
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Tested-by: Matthew Jacobs <mj@cloudera.com>